forked from sabman/cartodb-docker-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (102 loc) · 2.32 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
version: '2'
volumes:
postgresdb:
redisdb:
public:
letsencrypt:
services:
cartodb-postgis:
#image: sabman/ihmeuw-cartodb-docker_cartodb-postgis
container_name: cartodb-postgis
build:
context: postgis
volumes:
- postgresdb:/var/lib/postgresql/data
cartodb-redis:
#image: sabman/ihmeuw-cartodb-docker_cartodb-redis
container_name: cartodb-redis
build:
context: redis
volumes:
- redisdb:/data
cartodb-sqlapi:
#image: sabman/ihmeuw-cartodb-docker_cartodb-sqlapi
depends_on:
- cartodb-postgis
- cartodb-redis
container_name: cartodb-sqlapi
build:
context: sqlapi
command: $ENVIRONMENT.js.example
environment:
- ENVIRONMENT
cartodb-mapsapi:
#image: sabman/ihmeuw-cartodb-docker_cartodb-mapsapi
depends_on:
- cartodb-postgis
- cartodb-redis
container_name: cartodb-mapsapi
build:
context: mapsapi
command: $ENVIRONMENT.js.example
environment:
- PUBLIC_HOST
- PUBLIC_PORT
- ENVIRONMENT
cartodb-editor:
image: sabman/ihmeuw-cartodb-docker_cartodb-editor
depends_on:
- cartodb-postgis
- cartodb-redis
- cartodb-mapsapi
- cartodb-sqlapi
container_name: cartodb-editor
build:
context: editor
args:
- RAILS_ENV=$ENVIRONMENT
volumes:
- public:/cartodb/public
- ./migrated:/migrated
environment:
- PUBLIC_HOST
- PUBLIC_PORT
- PUBLIC_PROTOCOL
- DEFAULT_USER
- DEFAULT_PASSWORD
cartodb-resque:
image: sabman/ihmeuw-cartodb-docker_cartodb-editor
depends_on:
- cartodb-postgis
- cartodb-redis
- cartodb-mapsapi
- cartodb-sqlapi
container_name: cartodb-resque
environment:
- START_RESQUE_ONLY=1
- PUBLIC_HOST
- PUBLIC_PORT
- PUBLIC_PROTOCOL
- DEFAULT_USER
- DEFAULT_PASSWORD
- ENVIRONMENT
volumes_from:
- cartodb-editor
cartodb-router:
#image: sabman/ihmeuw-cartodb-docker_cartodb-router
depends_on:
- cartodb-mapsapi
- cartodb-sqlapi
- cartodb-editor
container_name: cartodb-router
build:
context: router
volumes:
- public:/public:ro
- letsencrypt:/etc/letsencrypt
ports:
- 80:80
- 443:443
environment:
- EMAIL
- DOMAINS