-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (45 loc) · 1.04 KB
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
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: valiant-db
environment:
POSTGRES_USER: valiant
POSTGRES_PASSWORD: valiant_password
POSTGRES_DB: valiant
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U valiant"]
interval: 10s
timeout: 5s
retries: 5
backend:
build: ./backend
container_name: valiant-backend
restart: always
environment:
- PORT=8080
- DATABASE_URL=postgres://valiant:valiant_password@postgres:5432/valiant?sslmode=disable
ports:
- "8080:8080"
volumes:
- ./example/config.yaml:/root/config.yaml
depends_on:
- postgres
frontend:
build: ./frontend
container_name: valiant-frontend
restart: always
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080/api/v1
ports:
- "3000:3000"
volumes:
- /app/node_modules
depends_on:
- backend
volumes:
postgres_data: