-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (56 loc) · 1.02 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
postgres:
image: postgres:13
container_name: postgres
restart: always
env_file: .env
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- kittygram
backend:
build: ./backend
container_name: backend
restart: always
depends_on:
- postgres
env_file: .env
volumes:
- static:/app/static
- media:/app/media
ports:
- "8000:8000"
networks:
- kittygram
frontend:
build: ./frontend
container_name: frontend
restart: always
depends_on:
- backend
networks:
- kittygram
gateway:
build: ./nginx
container_name: gateway
restart: always
depends_on:
- backend
- frontend
ports:
- "8080:80"
volumes:
- static:/app/static
- media:/app/media
networks:
- kittygram
volumes:
pg_data:
static:
media:
networks:
kittygram: