-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.prod.yml
57 lines (50 loc) · 1.37 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
version: '3'
services:
web:
image: hacklab/mapasculturais-nginx:latest
restart: unless-stopped
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:
build:
context: ./
dockerfile: compose/production/Dockerfile
restart: unless-stopped
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
environment:
- POSTGRES_PASSWORD=mapas
- POSTGRES_USER=mapas
- POSTGRES_DB=mapas
# - APP_LCODE=pt_BR,es_ES # para selecao do idioma baseado no navegador
- APP_LCODE=pt_BR
- APP_MODE=production
- ACTIVE_THEME=SampleTheme
- PENDING_PCACHE_RECREATION_INTERVAL=60
depends_on:
- db
db:
image: mdillon/postgis:11
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=mapas
- POSTGRES_USER=mapas
- POSTGRES_DB=mapas
- POSTGRES_DB_TEST=mapasculturais_test
ports:
- "5432:5432"
volumes:
- ./compose/local/dump.sql:/docker-entrypoint-initdb.d/dump.sql
- ./docker-data/db-data:/var/lib/postgresql/data