-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
36 lines (33 loc) · 949 Bytes
/
docker-compose-prod.yml
File metadata and controls
36 lines (33 loc) · 949 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
version: '3.1'
services:
nginx:
restart: always
image: nginx
volumes:
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
environment:
- NGINX_PORT=80
api:
build: .
restart: always
ports:
- "8000:8000"
volumes:
- ./developer_discover:/developer_discover
command: bash -c "
python developer_discover/manage.py db_connection &&
python developer_discover/manage.py makemigrations &&
python developer_discover/manage.py migrate &&
python developer_discover/manage.py runserver 0.0.0.0:8000"
web:
restart: always
image: 164899418867.dkr.ecr.ap-northeast-2.amazonaws.com/developer_discovery_repository:latest
build: ../Frontend_Developer_Discovery
ports:
- "3000:3000"
volumes:
- ../Frontend_Developer_Discovery:/Frontend_Developer_Discovery
environment:
- CHOKIDAR_USEPOLLING=true