-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.override.yml
106 lines (98 loc) · 2.23 KB
/
docker-compose.override.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
101
102
103
104
105
106
version: '3.8'
services:
auth-nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
container_name: auth-nginx
restart: unless-stopped
networks:
- movies-network
- auth-network
depends_on:
- auth-backend
auth-backend:
container_name: auth-backend
restart: unless-stopped
build:
context: .
dockerfile: docker/backend/Dockerfile
networks:
- auth-network
depends_on:
auth-redis:
condition: service_healthy
auth-postgres:
condition: service_healthy
auth-jaeger:
condition: service_healthy
env_file:
- ./src/.env
auth-migration:
container_name: auth-migration
build:
context: .
dockerfile: docker/backend/Dockerfile
networks:
- auth-network
depends_on:
auth-postgres:
condition: service_healthy
env_file:
- ./src/.env
volumes:
- ./src:/opt/app
command: poetry run alembic upgrade head
auth-postgres:
container_name: auth-postgres
image: postgres:13
restart: unless-stopped
networks:
- auth-network
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
healthcheck:
test:
[
"CMD-SHELL",
"sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"
]
interval: 5s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
auth-redis:
container_name: auth-redis
image: redis:7.0.8-alpine
restart: unless-stopped
networks:
- auth-network
healthcheck:
test: redis-cli ping >/dev/null || exit 1
interval: 5s
timeout: 5s
retries: 5
auth-jaeger:
container_name: auth-jaeger
image: jaegertracing/all-in-one:latest
restart: unless-stopped
networks:
- auth-network
healthcheck:
test: wget --no-verbose --tries=1 --spider ${JAEGER_HOST}:${JAEGER_PORT}/search || exit 1
interval: 5s
timeout: 5s
retries: 5
env_file:
- ./src/.env
networks:
movies-network:
external:
name: movies-network
auth-network:
external: true
volumes:
postgres_data: