-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 895 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
version: '3.4'
services:
web:
image: galka777/destinations_catalogue_2
command: gunicorn Destinations_Catalogue.wsgi:application --bind 0.0.0.0:8000
build: .
volumes:
- /tmp/Destinations_Catalogue/static_root:/app/static
- ./media:/app/media/
ports:
- "8000:8000"
env_file:
- .env
links:
- postgres
postgres:
image: postgres
restart: always
ports:
- "5432:5432"
env_file:
- .env
volumes:
- ./postgresql:/var/lib/postgresql/data
nginx:
image: nginx
ports:
- "80:80"
- "443:443"
depends_on:
- web
volumes:
- ./static_root:/app/static_root/
- ./media:/app/media/
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/logs:/var/log/nginx
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
links:
- web