-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
99 lines (92 loc) · 2.6 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
version: "3"
volumes:
hddacme:
hddcanon:
hddletsencrypt:
hddrestui:
networks:
default:
services:
certbot:
image: certbot/certbot:latest
volumes:
- hddletsencrypt:/etc/letsencrypt
- hddacme:/tmp/certbot-acme
- ./certbot/cli.ini:/etc/letsencrypt/cli.ini
- ./certbot/fake-certs.sh:/fake-certs.sh
- ./certbot/real-certs.sh:/real-certs.sh
environment:
db:
image: "postgres:latest"
volumes:
- ./db/postgresql.conf:/etc/postgresql.conf
- ./db/init.d:/docker-entrypoint-initdb.d
- /datastore/postgres:/var/lib/postgresql/data
- /datastore/dumps:/app/dumps
- /datastore/shared:/app/shared
environment:
- POSTGRES_PASSWORD="please set a password"
ports:
- "5432:5432"
restart: unless-stopped
command: postgres -c config_file=/etc/postgresql.conf
mondrian:
build: https://github.com/datachile/datachile-mondrian.git#master
depends_on:
- db
volumes:
- ./mondrian/config.yaml:/mondrian-rest/config.yaml:ro
- ./mondrian/schema.xml:/mondrian-rest/schema.xml:ro
- /datastore/shared:/app/shared
environment:
- MONDRIAN_REST_CONF=/mondrian-rest/config.yaml
expose:
- "9292"
restart: unless-stopped
canon:
build: https://github.com/datachile/datachile.git
depends_on:
- mondrian
volumes:
- hddcanon:/datachile/static
- /datastore/shared:/app/shared
environment:
- NODE_ENV=production
- APP_HOME=/datachile
- ROOT=/datachile
- CANON_API=https://chilecube.datachile.localhost
- CANON_CONST_API=https://chilecube.datachile.localhost
- CANON_GOOGLE_ANALYTICS=UA-109603240-1
- CANON_LANGUAGE_DEFAULT=es
- CANON_LANGUAGES=es,en
- CANON_LOGICLAYER_CUBE=http://mondrian:9292/
- CANON_LOGICLAYER_LOGGING=true
- CANON_PORT=4444
expose:
- "4444"
restart: unless-stopped
nginx:
image: nginx:latest
depends_on:
- canon
- mondrian
volumes:
- hddacme:/tmp/certbot-acme
- hddcanon:/app/canon-static:ro
- hddletsencrypt:/etc/letsencrypt
- hddrestui:/app/restui
- /datastore/cache-canon:/ncache/canon
- /datastore/cache-mondrian:/ncache/mondrian
- /datastore/datasets:/app/datasets
- /datastore/public:/app/public
- /datastore/shared:/app/shared
- ./nginx/hosts:/etc/nginx/conf.d
- ./nginx/snippets:/etc/nginx/snippets
- ./nginx/ssl:/etc/nginx/ssl
ports:
- "80:80"
- "443:443"
restart: unless-stopped
logging:
driver: gcplogs