-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
62 lines (58 loc) · 1.24 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.8'
services:
web:
container_name: web
build:
context: ./
dockerfile: Dockerfile.prod
command: gunicorn whaling.wsgi:application --bind 0.0.0.0:8000
environment:
TZ: "Asia/Seoul"
DJANGO_SETTINGS_MODULE: whaling.settings.prod
env_file:
- .env
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
expose:
- 8000
entrypoint:
- sh
- config/docker/entrypoint.prod.sh
react:
container_name: react
user: node
privileged: true
build:
context: ./frontend
dockerfile: Dockerfile
command: sh -c "npm run build && npm run start"
volumes:
- ./frontend/:/app
- /app/node_modules
environment:
- TZ=Asia/Seoul
- NODE_ENV=devlopment
expose:
- 3000
stdin_open: true
restart: always
nginx:
container_name: nginx
build: ./config/nginx
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
- /etc/letsencrypt/archive/whaling.kro.kr:/etc/nginx/conf.d/certificate
- ./frontend:/root
environment:
- TZ=Asia/Seoul
ports:
- "80:80"
- "443:443"
depends_on:
- web
- react
volumes:
static:
media: