-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
174 lines (162 loc) · 4.67 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
version: "3.8"
services:
api:
build:
context: ./api
dockerfile: api.Dockerfile
ports:
- "${API_SERVICE_PORT:-3030}:3000"
- "127.0.0.1:${API_DEBUG_INSPECT_PORT:-9230}:9229"
container_name: marxan-api
command: develop
volumes:
- ./api/apps:/opt/marxan-api/apps
- ./api/libs:/opt/marxan-api/libs
- marxan-cloud-backend-temp-storage:/tmp/storage
- marxan-cloud-backend-cloning-storage:/opt/marxan-project-cloning
env_file: .env
environment:
- NODE_PATH=src
- NODE_ENV=development
- API_POSTGRES_HOST=marxan-postgresql-api
- API_POSTGRES_USER
- API_POSTGRES_PASSWORD
- API_POSTGRES_PORT=5432
- API_POSTGRES_DB
- GEO_POSTGRES_HOST=marxan-postgresql-geo-api
- GEO_POSTGRES_USER
- GEO_POSTGRES_PASSWORD
- GEO_POSTGRES_PORT=5432
- GEO_POSTGRES_DB
- REDIS_HOST=marxan-redis
- NODE_CONFIG_DIR=apps/api/config
- ENABLE_DEBUG_MODE=${ENABLE_DEBUG_MODE:-false}
depends_on:
- postgresql-api
- postgresql-geo-api
- redis
restart: unless-stopped
app:
build:
context: ./app
dockerfile: Dockerfile
ports:
- "${APP_SERVICE_PORT:-3000}:3000"
container_name: marxan-app
command: develop
volumes:
- ./app/src:/opt/marxan-app/src
- ./app/test:/opt/marxan-app/test
env_file: .env
environment:
- NODE_PATH=src
- NODE_ENV=development
geoprocessing:
build:
context: ./api
dockerfile: geo.Dockerfile
ports:
- "${GEOPROCESSING_SERVICE_PORT:-3040}:3000"
- "127.0.0.1:${GEOPROCESSING_DEBUG_INSPECT_PORT:-9240}:9229"
container_name: marxan-geoprocessing
command: develop
volumes:
- ./api/apps:/opt/marxan-geoprocessing/apps
- ./api/libs:/opt/marxan-geoprocessing/libs
- marxan-cloud-backend-temp-storage:/tmp/storage
- marxan-cloud-backend-cloning-storage:/opt/marxan-project-cloning
env_file: .env
environment:
- NODE_PATH=src
- NODE_ENV=development
- API_POSTGRES_HOST=marxan-postgresql-api
- API_POSTGRES_USER
- API_POSTGRES_PASSWORD
- API_POSTGRES_PORT=5432
- API_POSTGRES_DB
- GEO_POSTGRES_HOST=marxan-postgresql-geo-api
- GEO_POSTGRES_USER
- GEO_POSTGRES_PASSWORD
- GEO_POSTGRES_PORT=5432
- GEO_POSTGRES_DB
- REDIS_HOST=marxan-redis
- NODE_CONFIG_DIR=apps/geoprocessing/config
- ENABLE_DEBUG_MODE=${ENABLE_DEBUG_MODE:-false}
depends_on:
- postgresql-geo-api
- postgresql-api
- api
- redis
restart: unless-stopped
webshot:
build:
context: ./webshot
dockerfile: Dockerfile
ports:
- "${WEBSHOT_SERVICE_PORT:-3060}:3000"
- "127.0.0.1:${WEBSHOT_DEBUG_INSPECT_PORT:-9260}:9229"
container_name: marxan-webshot
command: develop
volumes:
- ./webshot/src:/opt/marxan-webshot/src
environment:
- ENABLE_DEBUG_MODE=${ENABLE_DEBUG_MODE:-false}
postgresql-api:
build:
context: ./postgresql
dockerfile: apidb.Dockerfile
container_name: marxan-postgresql-api
ports:
- "${POSTGRES_API_SERVICE_PORT:-3432}:5432"
volumes:
- "marxan-cloud-postgresql-api-data:/var/lib/postgresql/data"
- "./api/apps/api/test/fixtures:/opt:ro"
environment:
- POSTGRES_PASSWORD=${API_POSTGRES_PASSWORD}
- POSTGRES_USER=${API_POSTGRES_USER}
- POSTGRES_DB=${API_POSTGRES_DB}
restart: on-failure
postgresql-geo-api:
build:
context: ./postgresql
dockerfile: geodb.Dockerfile
shm_size: 16gb
shm_size: 16gb
container_name: marxan-postgresql-geo-api
ports:
- "${POSTGRES_GEO_SERVICE_PORT:-3433}:5432"
volumes:
- marxan-cloud-postgresql-geo-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${GEO_POSTGRES_PASSWORD}
- POSTGRES_USER=${GEO_POSTGRES_USER}
- POSTGRES_DB=${GEO_POSTGRES_DB}
restart: always
redis:
build:
context: ./redis
dockerfile: Dockerfile
hostname: redis
container_name: marxan-redis
command: [ "redis-server" ]
ports:
- "${REDIS_API_SERVICE_PORT:-3050}:6379"
restart: on-failure
# Admin gui for redis
redis-commander:
image: rediscommander/redis-commander
hostname: redis-commander
container_name: marxan-redis-commander
restart: always
environment:
- REDIS_HOSTS=local:marxan-redis:6379
ports:
- "${REDIS_COMMANDER_PORT}:8081"
depends_on:
- redis
volumes:
marxan-cloud-postgresql-api-data:
marxan-cloud-postgresql-geo-data:
marxan-cloud-redis-api-data:
marxan-cloud-backend-temp-storage:
marxan-cloud-backend-cloning-storage: