-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.demo.yaml
74 lines (67 loc) · 1.25 KB
/
docker-compose.demo.yaml
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
version: '3.1'
services:
db:
image: postgres:16.1
restart: always
environment:
- POSTGRES_USER=admin
- POSTGRES_DB=tasks
- POSTGRES_PASSWORD=admin
ports:
- "5432:5432"
networks:
- task-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin"]
interval: 10s
timeout: 5s
retries: 5
river:
image: evalsocket/river:latest
command: ["migrate-up", "--database-url", "postgres://admin:admin@db:5432/tasks"]
depends_on:
db:
condition: service_healthy
links:
- db
env_file:
- .env.docker
networks:
- task-network
dashboard:
build:
context: .
dockerfile: Dockerfile.client
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
links:
- db
- task
- river
env_file:
- .env.docker
networks:
- task-network
task:
build:
context: .
dockerfile: Dockerfile
target: server-final
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
links:
- db
- river
env_file:
- .env.docker
networks:
- task-network
networks:
task-network:
driver: bridge