-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·52 lines (46 loc) · 989 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·52 lines (46 loc) · 989 Bytes
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
version: "3.9"
services:
internal_service:
environment:
- COMPOSE_PROJECT_NAME
container_name: internal_service
build:
context: .
dockerfile: dockerfile_internal_service
env_file:
- .env
command: bash -c "
alembic upgrade head
&& python main.py
"
depends_on:
postgres:
condition: service_healthy
external_service:
container_name: external_service
build:
context: .
dockerfile: dockerfile_external_service
env_file:
- .env
ports:
- ${PORT}:${PORT}
depends_on:
postgres:
condition: service_healthy
postgres:
container_name: postgres_derbit
image: postgres:13-alpine3.15
volumes:
- postgres_volume:/var/lib/postgresql/data/
env_file:
- .env
healthcheck:
test: [ "CMD-SHELL", "pg_isready -V" ]
interval: 5s
timeout: 5s
retries: 5
ports:
- 5432:5432
volumes:
postgres_volume: