-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-homolg.yml
88 lines (81 loc) · 2.75 KB
/
docker-compose-homolg.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
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
##### versão sem ssl
- ./compose/production/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- '8080:80'
- "8443:443"
depends_on:
- mapasculturais
links:
- mapasculturais
mapasculturais:
env_file:
- .env
build:
context: ./
dockerfile: compose/production/Dockerfile
restart: unless-stopped
# ports:
# - '9000:9000'
volumes:
- ./.env:/.env
- ./docker-data/assets:/var/www/html/assets
- ./docker-data/public-files:/var/www/html/files
- ./docker-data/private-files:/var/www/private-files
- ./docker-data/saas-files:/var/www/SaaS
- ./themes/Ceara/layouts/parts/charts/line.php:/var/www/html/protected/application/lib/modules/Charts/layouts/parts/charts/line.php
# arquivos temporários
- ./themes/Ceara/Entities/Opportunity.php:/var/www/html/protected/application/lib/MapasCulturais/Entities/Opportunity.php
- ./themes/Ceara/Controllers/Registration.php:/var/www/html/protected/application/lib/MapasCulturais/Controllers/Registration.php
- ./themes/Ceara/Controllers/Opportunity.php:/var/www/html/protected/application/lib/MapasCulturais/Controllers/Opportunity.php
- ./themes/Ceara/ApiOutputs/Json.php:/var/www/html/protected/application/lib/MapasCulturais/ApiOutputs/Json.php
links:
- db
- redis
- sessions
environment:
- ACTIVE_THEME=Ceara
- LOG_LEVEL=DEBUG
- LOG_ENABLED=true
- APP_MODE=production
- APP_LCODE=pt_BR
# - APP_LCODE=pt_BR,es_ES # para selecao do idioma baseado no navegador
- REDIS_CACHE=redis
- SESSIONS_SAVE_PATH=tcp://redis:6379
- PENDING_PCACHE_RECREATION_INTERVAL=5
depends_on:
- db
- redis
- sessions
redis:
image: redis:6
command: --maxmemory 256Mb --maxmemory-policy allkeys-lru
restart: unless-stopped
sessions:
image: redis:6
command: --maxmemory 384Mb --maxmemory-policy allkeys-lru
restart: unless-stopped
volumes:
- ./docker-data/sessions:/data
db:
image: postgis/postgis:14-master
restart: always
environment:
- POSTGRES_PASSWORD=mapas
- POSTGRES_USER=mapas
- POSTGRES_DB=mapas
- POSTGRES_DB_TEST=mapasculturais_test
# ports:
# - '5438:5432'
volumes:
# - ./docker-data/db-data:/var/lib/postgresql/data 750
- ./compose/local/dump.sql:/docker-entrypoint-initdb.d/dump.sql
- ./docker-data/db-data:/var/lib/postgresql/data