-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
50 lines (45 loc) · 959 Bytes
/
docker-compose.prod.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
version: "3.8"
services:
web:
build:
context: ./app
dockerfile: Dockerfile.prod
command: gunicorn nbi.wsgi:application --timeout 200 --bind 0.0.0.0:8000 --log-level debug
container_name: web
volumes:
- ./app/:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./.env.prod
restart: always
depends_on:
- db
db:
build:
context: ./db
dockerfile: Dockerfile.prod.db
command: postgres -c log_statement=all -c max_wal_size=2GB
container_name: db
volumes:
- nbi-data-prod:/var/lib/postgresql/data/
restart: always
env_file:
- ./.env.prod
express:
build:
context: ./express-redis
dockerfile: Dockerfile.prod
container_name: express
volumes:
- ./express-redis/:/usr/src/app
ports:
- 3000:3000
env_file:
- ./.env.prod
restart: always
volumes:
nbi-data-prod:
networks:
default:
name: nbi