-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (53 loc) · 1.01 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
services:
web:
image: nokal/waiting-time-backend
build: .
volumes:
- ./assets:/srv/webapp/assets
env_file:
- .env
restart: always
depends_on:
- db
swagger:
image: swaggerapi/swagger-ui
environment:
SWAGGER_JSON_URL: http://${WEBAPP_HOST}/swagger.json
depends_on:
- web
restart: always
nginx:
image: nginx
ports:
- ${HOST_PORT}:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
restart: always
env_file:
- .env
depends_on:
- web
- swagger
db:
image: postgres:16.0
volumes:
- ./data:/var/lib/postgresql/data
- ./pg_hba.conf:/var/lib/postgresql/data/pg_hba.conf
env_file:
- .env
expose:
- 5432
ports:
- 5432:5432
restart: always
database-api:
build: ./database-api
ports:
- "5000:5000"
env_file:
- .env
depends_on:
- db
restart: always
volumes:
- /root/pix/waiting-time-backend/database-api:/app/logs