-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-example.yaml
More file actions
39 lines (36 loc) · 909 Bytes
/
docker-compose-example.yaml
File metadata and controls
39 lines (36 loc) · 909 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
# This also makes no sense anymore we dont need the Frontend and Nginx container anymore
services:
vidlocker:
build:
context: .
dockerfile: backend/Dockerfile
environment:
- MODE=queue
- DATABASE_URL=postgresql://vidlocker:<your_secure_password>@db:5432/vidlocker
ports:
- "3001:3001"
depends_on:
db:
condition: service_healthy
volumes:
- ./backend/output:/app/output
container_name: vidlocker
db:
image: postgres:17.2-alpine
environment:
- POSTGRES_USER=vidlocker
- POSTGRES_PASSWORD=<your_secure_password>
- POSTGRES_DB=vidlocker
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vidlocker"]
interval: 10s
timeout: 5s
retries: 5
networks:
- vidlocker-network
volumes:
db_data: