forked from Plaetorius/ft_transcendence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 888 Bytes
/
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
services:
db:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
web:
build: .
env_file:
- .env
command: ./start_django.sh
volumes:
- ./src:/code/src
- static_volume:/code/src/staticfiles
- media_volume:/code/src/media
ports:
- "8000:8000"
depends_on:
- db
redis:
image: "redis:alpine"
ports:
- "7474:6379"
adminer:
image: adminer
ports:
- "8080:8080"
depends_on:
- db
nginx:
build: ./services/nginx/
ports:
- "1026:443"
depends_on:
- web
volumes:
- static_volume:/usr/share/nginx/html/static
- media_volume:/usr/share/nginx/html/media
volumes:
postgres_data:
driver: local
portainer_data:
driver: local
static_volume:
driver: local
media_volume:
driver: local