generated from gambitier/voidkit-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
executable file
·80 lines (75 loc) · 1.69 KB
/
docker-compose.dev.yml
File metadata and controls
executable file
·80 lines (75 loc) · 1.69 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
services:
redis:
image: redis:latest
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
postgres:
image: postgres:15
healthcheck:
test: ["CMD", "pg_isready", "-U", "temporal_flow"]
interval: 1s
timeout: 5s
retries: 10
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: temporal_flow
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
centrifugo:
image: centrifugo/centrifugo:v6.2
ports:
- "8000:8000"
- "10000:10000"
volumes:
- ./centrifugo/config.json:/centrifugo/config.json
depends_on:
- redis
ulimits:
nofile:
soft: 65535
hard: 65535
asynqmon:
image: hibiken/asynqmon:latest
platform: linux/amd64
ports:
- "8086:8080"
environment:
- REDIS_ADDR=redis:6379
depends_on:
- redis
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "${BACKEND_PORT:-8085}:8085"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./:/app/src
environment:
- ENV=development
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=root
- DB_NAME=temporal_flow
- COLLECTOR_URL=host.docker.internal:4317
- INSECURE=true
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
centrifugo:
condition: service_started
command: /app/main --config=/app/default.yaml --env=development
volumes:
redis_data:
postgres_data: