-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (69 loc) · 1.75 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
version: '3'
services:
web:
image: hacklab/mapasculturais-nginx:latest
restart: always
volumes:
- ./docker-data/public-files:/var/www/html/files
- ./docker-data/assets:/var/www/html/assets
ports:
- "80:80"
- "443:443"
depends_on:
- mapasculturais
links:
- mapasculturais
mapasculturais:
env_file:
- .env
build:
context: ./
dockerfile: compose/production/Dockerfile
restart: always
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
- ./docker-data/saas-files:/var/www/SaaS
links:
- db
- redis
environment:
#- ACTIVE_THEME=MeuTema
- LOG_LEVEL=DEBUG
- LOG_ENABLED=true
- APP_MODE=production
- APP_LCODE=pt_BR
- BUILD_ASSETS=1
# - 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
- DB_PASSWORD=mapas
- DB_USER=mapas
- DB_DB=mapas
- DB_VERSION
depends_on:
- db
- redis
redis:
image: redis:6
command: --maxmemory 256Mb --maxmemory-policy allkeys-lru
restart: always
db:
image: postgis/postgis:14-master
restart: always
environment:
- POSTGRES_PASSWORD=mapas
- POSTGRES_USER=mapas
- POSTGRES_DB=mapas
- POSTGRES_DB_TEST=mapasculturais_test
- TZ=GMT+3
- PGTZ=GMT+3
# ports:
# - "5432:5432"
volumes:
- ./compose/db:/docker-entrypoint-initdb.d
- ./docker-data/db-data:/var/lib/postgresql/data