-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
112 lines (93 loc) · 3.18 KB
/
docker-compose.prod.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3'
services:
nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- /dev/null:/var/www/html/index.php
- ./docker-data/public-files:/var/www/html/files
- ./docker-data/assets:/var/www/html/assets
- ./em-breve:/var/www/html/em-breve
- ./docker-data/nginx:/etc/nginx/conf.d
- ./docker-data/certbot/conf:/etc/letsencrypt
- ./docker-data/certbot/www:/var/www/certbot
ports:
- "80:80"
- "443:443"
depends_on:
- mapasculturais
links:
- mapasculturais
sessions:
image: redis:6
restart: unless-stopped
command: --maxmemory 384Mb --maxmemory-policy allkeys-lru
volumes:
- ./docker-data/sessions:/data
redis:
image: redis:6
restart: unless-stopped
command: --maxmemory 384Mb --maxmemory-policy allkeys-lru
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- ./docker-data/certbot/conf:/etc/letsencrypt
- ./docker-data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
mapasculturais:
env_file:
- mapasculturais.prod.env
build:
context: ./
dockerfile: compose/production/Dockerfile
restart: unless-stopped
ports:
- "9000:9000"
volumes:
- ./docker-data/assets:/var/www/html/assets
- ./docker-data/public-files:/var/www/html/files
- ./docker-data/private-files:/var/www/private-files
- ./compose/config-csv-inciso1.php:/var/www/html/protected/application/plugins/AldirBlancDataprev/config-csv-inciso1.php
- ./compose/config-csv-inciso2.php:/var/www/html/protected/application/plugins/AldirBlancDataprev/config-csv-inciso2.php
- ./compose/config-cnab240-inciso1.php:/var/www/html/protected/application/plugins/AldirBlanc/config-cnab240-inciso1.php
- ./compose/config-import-cnab240.php:/var/www/html/protected/application/plugins/AldirBlanc/config-import-cnab240.php
- ./compose/config-mci460.php:/var/www/html/protected/application/plugins/AldirBlanc/config-mci460.php
- ./em-breve:/var/www/html/em-breve
environment:
- REDIS_CACHE=redis
- SESSIONS_SAVE_PATH=tcp://sessions:6379
- POSTGRES_PASSWORD=mapas
- POSTGRES_USER=mapas
- POSTGRES_DB=mapas
- APP_LCODE=pt_BR
- ACTIVE_THEME=EspiritoSanto
- APP_MODE=production
- PENDING_PCACHE_RECREATION_INTERVAL=1
- REGISTRATION_PREFIX=es-
- AUTH_EMAIL_IMAGE=
- AUTH_FACEBOOK_VISIBLE=false
- AUTH_TWITTER_VISIBLE=false
- AUTH_LINKEDIN_VISIBLE=false
- AUTH_SUPPORT_SITE=
- AUTH_SUPPORT_CHAT=
depends_on:
- db
- redis
- sessions
links:
- db
- redis
- sessions
db:
image: postgis/postgis:14-master
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=mapas
- POSTGRES_USER=mapas
- POSTGRES_DB=mapas
- POSTGRES_DB_TEST=mapasculturais_test
volumes:
- ./compose/local/dump.sql:/docker-entrypoint-initdb.d/dump.sql
- ./docker-data/db-data:/var/lib/postgresql/data