-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.11 KB
/
docker-compose.yml
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
53
54
55
56
57
58
x-restart-policy: &default_restart_policy
restart: ${DEFAULT_RESTART_POLICY:-unless-stopped}
services:
api:
build:
context: ./api
<<: *default_restart_policy
depends_on:
postgres:
condition: service_healthy
command: uvicorn --host 0.0.0.0 --reload api.main:app
hostname: "api"
env_file:
- api/api.env
ports:
- 8000:8000
volumes:
- ./api/api/:/home/api/api/
networks:
- frenet
webui:
build:
context: ./webui
depends_on:
api:
condition: service_healthy
environment:
NODE_ENV: production
env_file:
- webui/webui.env
restart: unless-stopped
ports:
- 127.0.0.1:3000:3000
networks:
- frenet
postgres:
build:
context: ./postgres
<<: *default_restart_policy
hostname: "postgres"
env_file:
- postgres/postgres.env
networks:
- frenet
volumes:
- postgres-data:/var/lib/postgresql/data
- ./postgres/init:/docker-entrypoint-initdb.d:ro
- ./backups:/backups
volumes:
postgres-data:
networks:
frenet:
name: frenet