-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.homolog.yml
85 lines (74 loc) · 1.93 KB
/
docker-compose.homolog.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
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-homolog.conf:/etc/nginx/conf.d/default.conf
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
- ./compose/teste.php:/var/www/html/teste.php
links:
- db
- 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
- PENDING_PCACHE_RECREATION_INTERVAL=2
- DB_PASSWORD=mapas
- DB_USER=mapas
- DB_DB=mapas
- DB_VERSION
depends_on:
- db
- 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
command: --maxmemory 256Mb --maxmemory-policy allkeys-lru
db:
image: postgis/postgis:14-master
restart: always
environment:
- POSTGRES_PASSWORD=mapas
- POSTGRES_USER=mapas
- POSTGRES_DB=mapas
# ports:
# - "5432:5432"
volumes:
- ./compose/db:/docker-entrypoint-initdb.d
- ./docker-data/db-data:/var/lib/postgresql/data