This repository was archived by the owner on Feb 27, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (79 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (79 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
supertokens:
image: registry.supertokens.io/supertokens/supertokens-postgresql:11.0.2
ports:
- 3567:3567
env_file:
- .env
environment:
POSTGRESQL_CONNECTION_URI: postgresql://postgres:password@postgres:5432/clarabasedb?sslmode=disable
POSTGRESQL_TABLE_SCHEMA: auth
LOG_LEVEL: warn
networks:
- app_network
restart: unless-stopped
healthcheck:
test: >
bash -c 'exec 3<>/dev/tcp/127.0.0.1/3567 && echo -e "GET /hello HTTP/1.1\r\nhost: 127.0.0.1:3567\r\nConnection: close\r\n\r\n" >&3 && cat <&3 | grep "Hello"'
interval: 10s
timeout: 5s
retries: 5
clarabase:
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- .env
depends_on:
supertokens:
condition: service_healthy
networks:
- app_network
ports:
- "8787:8787"
environment:
- SUPERTOKENS_URL=http://supertokens:3567
- REDIS_URL=redis://redis:6379
volumes:
- ./:/app
clarabase-worker:
build:
context: .
dockerfile: Dockerfile.worker
env_file:
- .env
depends_on:
- redis
- postgres
networks:
- app_network
environment:
- REDIS_URL=redis://redis:6379
- POSTGRESQL_CONNECTION_URI=postgresql://postgres:password@postgres:5432/clarabasedb?sslmode=disable
volumes:
- ./:/app
restart: unless-stopped
redis:
image: redis:latest
ports:
- "6379:6379"
networks:
- app_network
# docker run -d --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=clarabasedb -p 5432:5432 postgres:17
postgres:
image: postgres:17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: clarabasedb
ports:
- "5432:5432"
networks:
- app_network
volumes:
- clarabase_postgres_data:/var/lib/postgresql/data
networks:
app_network:
driver: bridge
volumes:
clarabase_postgres_data: