-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
123 lines (105 loc) · 3.13 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
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
113
114
115
116
117
118
119
120
121
122
123
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
- ./compose/production/nginx.conf:/etc/nginx/conf.d/default.conf
- ./docker-data/certbot/conf:/etc/letsencrypt
- ./docker-data/certbot/www:/var/www/certbot
ports:
- "80:80"
- "443:443"
depends_on:
- mapasculturais
links:
- mapasculturais
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:
- .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/var/private-files
- ./docker-data/saas-files:/var/www/var/saas-files
- ./docker-data/logs:/var/www/var/logs
- ./compose/common/config.d:/var/www/config/common.d
- ./compose/production/config.d:/var/www/config/prod.d
- ./compose/common/lgpd-terms:/var/www/config/lgpd-terms
links:
- db
- redis
environment:
- ACTIVE_THEME=CamacariV2
- LOG_LEVEL=DEBUG
- LOG_ENABLED=true
- TIMEZONE=America/Recife
- 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
# - AUTH_EMAIL_IMAGE=https://mapacultural.camacari.ba.gov.br/assets/img/logo-site-286408464-1671637844.png
- 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
# ports:
# - "5432:5432"
volumes:
- ./db/:/docker-entrypoint-initdb.d/
- ./docker-data/db-data:/var/lib/postgresql/data
metabase:
image: metabase/metabase
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=metabase
- MB_DB_PASS=metabase
- MB_DB_HOST=db_metabase
ports:
- "3000:3000"
depends_on:
- db_metabase
- db
db_metabase:
image: postgres:14
environment:
- POSTGRES_PASSWORD=metabase
- POSTGRES_USER=metabase
- POSTGRES_DB=metabase
volumes:
- ./compose/db/metabase.sql.gz:/docker-entrypoint-initdb.d/dump.sql.gz
- ./docker-data/metabase-data-030720231534:/var/lib/postgresql/data