-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (52 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
58 lines (52 loc) · 1.03 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
version: "3"
services:
accounts-db:
image: postgres:latest
restart: always
env_file:
- "postgres.env"
volumes:
- .docker-volume/postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- backend
nginx:
image: 'nginx:latest'
ports:
- "80:80"
depends_on:
- accounts-db
- auth
- tester
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf
networks:
- backend
auth:
build:
context: ./src/auth
dockerfile: ./Dockerfile
depends_on:
accounts-db:
condition: service_healthy
env_file:
- "./src/auth/.env"
environment:
- DB_HOST=accounts-db
networks:
- backend
tester:
build:
context: ./src/tester
dockerfile: ./Dockerfile
env_file:
- "./src/tester/.env"
networks:
- backend
networks:
backend:
driver: bridge