-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
90 lines (77 loc) · 2.09 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
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-prod.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
depends_on:
- mapasculturais
links:
- mapasculturais
mapasculturais:
env_file:
- .env
build:
context: ./
dockerfile: compose/production/Dockerfile
restart: always
ports:
- "9000:9000"
volumes:
- ./compose/production/fpm.conf:/usr/local/etc/php-fpm.d/www.conf
- ./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:
- redis
- sessions
environment:
- LOG_LEVEL=DEBUG
- LOG_ENABLED=true
- APP_MODE=production
- APP_LCODE=pt_BR
- REDIS_CACHE=redis
- SESSIONS_SAVE_PATH=tcp://sessions:6379
- SESSION_TIMEOUT=43200 # 12 horas
depends_on:
- redis
- sessions
sessions:
image: redis:6
restart: unless-stopped
command: --maxmemory 1024Mb --maxmemory-policy allkeys-lru
volumes:
- ./docker-data/sessions:/data
redis:
image: redis:6
restart: unless-stopped
command: --maxmemory 1024Mb --maxmemory-policy allkeys-lru
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_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-20230417:/var/lib/postgresql/data