-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.07 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
version: "3.9"
services:
db:
image: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
networks:
- network
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
nginx:
platform: linux/amd64
image: limjung99/nginx
hostname: nginx
build: ./nginx/
ports:
- "80:80"
depends_on:
- backend
networks:
- network
backend:
platform: linux/amd64
image: limjung99/gachi
build: ./app/
volumes:
- .:/code
networks:
- network
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
depends_on:
- db
command: sh -c "
python manage.py makemigrations authentication&&
python manage.py makemigrations friend&&
python manage.py makemigrations image&&
python manage.py makemigrations trip&&
python manage.py migrate&&
gunicorn --bind 0.0.0.0:8000 gachi_backend.wsgi:application"
networks:
network: