-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 860 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
services:
cv:
build: .
container_name: cv_web
command: bash ./bashes/RunBash.sh
restart: always
volumes:
- .:/code
ports:
- "8000:8000"
environment:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
env_file:
- ./.env
depends_on:
postgres_db:
condition: service_healthy
networks:
- cv_network
postgres_db:
image: postgres:15-alpine
container_name: cv_db
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- cv_data:/var/lib/postgresql/data
networks:
- cv_network
healthcheck:
test: "exit 0"
networks:
cv_network:
driver: bridge
volumes:
cv_data: