This repository has been archived by the owner on Aug 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
75 lines (70 loc) · 2.45 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
version: "3.4"
volumes:
carceropolis_db:
carceropolis_static:
carceropolis_sockets:
services:
memcached:
image: memcached:1.5-alpine
restart: always
db:
image: postgres:10.2-alpine
restart: always
environment:
- POSTGRES_DB=${DB_NAME:-postgres}
- POSTGRES_USER=${DB_USER:-postgres}
- POSTGRES_PASSWORD=${DB_PASS:-carceropolis}
# - PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- carceropolis_db:/var/lib/postgresql/data
nginx:
image: nginx:1.15-alpine
restart: always
volumes:
- carceropolis_static:/project/carceropolis/static
- carceropolis_sockets:/sockets
- ./carceropolis/static/media:/project/carceropolis/static/media
- ./deploy:/project/deploy
- ./deploy/nginx/${NGINX_CONF:-carceropolis.conf.dev}:/etc/nginx/conf.d/carceropolis.conf
- ./letsencrypt:/letsencrypt:ro
- ./logs:/logs
ports:
- "80:80"
- "443:443"
carceropolis:
image: askbr/carceropolis
restart: always
build: .
environment:
# This options are used on settings.py
- DEBUG=${DEBUG:-True} # Default to True
- IS_PRODUCTION=${IS_PRODUCTION} # Default to empty
- CONSOLE_LOG_LEVEL=${CONSOLE_LOG_LEVEL:-DEBUG} # Default to DEBUG
- SECRET_KEY=${SECRET_KEY}
- NEVERCACHE_KEY=${NEVERCACHE_KEY}
- DB_NAME=${DB_NAME:-postgres}
- DB_USER=${DB_USER:-postgres}
- DB_PASS=${DB_PASS:-carceropolis}
- DB_HOST=${DB_HOST:-db}
- DB_PORT=${DB_PORT:-5432}
- PUBLICACAO_PER_PAGE=${PUBLICACAO_PER_PAGE:-9} # Default to 9
- MAX_UPLOAD_SIZE=${MAX_UPLOAD_SIZE:-50MB} # Default to 50MB
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_HOST_USER=${EMAIL_USER}
- EMAIL_HOST_PASSWORD=${EMAIL_PASSWORD}
- EMAIL_PORT=${EMAIL_PORT:-587}
volumes:
- .:/project
- carceropolis_sockets:/sockets
- carceropolis_static:/project/carceropolis/static
- ./carceropolis/static/media:/project/carceropolis/static/media
ports:
- "5006:5006"
links:
- db
- nginx
- memcached
depends_on:
- db
- nginx
- memcached