-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-no-dev.yml
100 lines (96 loc) · 2.43 KB
/
docker-compose-no-dev.yml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3'
services:
aurora-postgres:
restart: always
image: postgres:14.5
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=Aurorascheduler
ports:
- 16432:5432
volumes:
- aurora-postgres:/var/lib/postgresql/data
# Set health checks to wait until postgres has started
healthcheck:
test:
[
'CMD',
'pg_isready',
'--username=root',
'--dbname=Aurorascheduler',
]
interval: 5s
timeout: 5s
retries: 5
networks:
- aurora_plan
aurora-plan:
build:
context: .
dockerfile: Dockerfile
image: aurora-plan:latest
networks:
- aurora_plan
aurora-migration:
image: aurora-plan:latest
command: ['./deploy/migration']
depends_on:
# - db
- aurora-postgres
networks:
- aurora_plan
aurora-api:
restart: always
image: aurora-plan:latest
# command: ['cargo', 'run', '-p', 'aurora-api', '--release']
command: ['./deploy/aurora-api']
ports:
- '54321:54321'
depends_on:
# - db
- aurora-service
networks:
- aurora_plan
aurora-service:
restart: always
image: aurora-plan:latest
# command:
# [
# 'cargo',
# 'run',
# '-p',
# 'aurora-service',
# '--release',
# ]
command: ['./deploy/aurora-service']
ports:
- '50051:50051'
depends_on:
- aurora-postgres
networks:
- aurora_plan
aurora-test:
image: aurora-plan:latest
command:
- /bin/bash
- -c
- |
./deploy/aurora-tests-authenticator
./deploy/aurora-tests-rpc_client
depends_on:
- aurora-api
- aurora-service
- aurora-postgres
networks:
- aurora_plan
networks:
aurora_plan:
driver: bridge
volumes:
aurora-postgres:
aurora-zookeeper:
aurora-worker-data:
aurora-logs:
aurora-shared-local:
aurora-resource-local: