-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (37 loc) · 846 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
42 lines (37 loc) · 846 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
services:
video_service:
build:
context: .
dockerfile: ./deploy/Dockerfile
env_file: .env
ports:
- ${APP_PORT}:${APP_PORT}
volumes:
- ./credentials:/app/credentials:ro
depends_on:
video-service-db:
condition: service_healthy
video-service-db:
image: postgres:latest
restart: always
env_file:
- .env
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
volumes:
- postgres-db:/var/lib/postgresql/
ports:
- ${DB_PORT_EXTERNAL}:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-db:
networks:
default:
name: stargazer_network
external: true