-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (42 loc) · 909 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (42 loc) · 909 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "3.8"
volumes:
pg_data:
static:
media:
services:
db:
image: postgres:13
container_name: db
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data
backend:
build: ./backend/
container_name: backend
env_file: .env
depends_on:
- db
volumes:
- static:/static
- media:/media
command: gunicorn kittygram_backend.wsgi:application --bind 0:8000
frontend:
build: ./frontend/
container_name: frontend
volumes:
- static:/static
environment:
- REACT_APP_API_URL=/kittygram/api
command: sh -c "mkdir -p /static/static && cp -r /app/build/. /static/static/ && tail -f /dev/null"
gateway:
build: ./nginx/
container_name: gateway
env_file: .env
depends_on:
- backend
- frontend
ports:
- "9000:80"
volumes:
- static:/static
- media:/media