-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
52 lines (47 loc) · 1020 Bytes
/
docker-compose.yaml
File metadata and controls
52 lines (47 loc) · 1020 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
52
version: '3.8'
services:
db:
image: postgres:latest
env_file:
- .env
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- sitg_network
restart: always
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB']
interval: 10s
timeout: 5s
retries: 3
backend:
build: ./backend
environment:
- API_PORT=9091
- API_HOST=0.0.0.0
- POSTGRES_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@db:$POSTGRES_PORT/$POSTGRES_DB
volumes:
- ./logs/:/app/services/watcher/logs/
networks:
- sitg_network
restart: always
ports:
- 127.0.0.1:9091:9091
depends_on:
db:
condition: service_healthy
frontend:
build:
context: ./frontend
args:
- API_PORT=9091
- API_HOST=localhost
networks:
- sitg_network
restart: always
ports:
- 127.0.0.1:4173:4173
volumes:
postgres-data:
networks:
sitg_network: