-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 1.84 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.7'
services:
app:
build:
context: ./app
args:
- CMS_URL
- LANG_HOSTS
target: prod
restart: always
environment:
- CMS_URL=${CMS_URL}
- LANG_HOSTS=${LANG_HOSTS}
cms:
build: ./cms
ports:
- "${PORT_CMS:-8000}:8000"
volumes:
- static:/html/static
- media:/html/media
restart: always
environment:
CMS_VERSION: ${VERSION}
DB_ENGINE: django.contrib.gis.db.backends.postgis
DB_HOST: db
DB_NAME: ${DB_NAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DEBUG: ${DEBUG:-0}
DEFAULT_FROM_EMAIL: ${EMAIL_FROM}
EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST: ${EMAIL_HOST}
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
EMAIL_USE_SSL: 0
EMAIL_USE_TLS: 1
GOOGLE_MAP_API_KEY: ${GOOGLE_MAP_API_KEY}
LIS_SIGNUP_KEYWORD: ${SIGNUP_KEYWORD}
BASE_URL: ${BASE_URL}
MEDIA_ROOT: /html/media
MEDIA_URL: ${MEDIA_URL}
SECRET_KEY: ${SECRET_KEY}
STATIC_ROOT: /html/static
STATIC_URL: ${STATIC_URL}
USE_SSL: ${USE_SSL:-1}
VIRTUAL_HOST: ${VIRTUAL_HOST}
MAX_WORKERS: ${MAX_WORKERS}
depends_on:
- db
- cache
db:
image: mdillon/postgis:11-alpine
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
cache:
image: memcached:alpine
restart: always
static:
build: ./static
ports:
- "${PORT_STATIC:-8001}:80"
volumes:
- static:/usr/share/nginx/html/static:ro
- media:/usr/share/nginx/html/media:ro
restart: always
volumes:
pgdata:
static:
media: