forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (43 loc) · 934 Bytes
/
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
# To use this file, run `docker-compose up`.
version: '3'
services:
# Main application
app:
image: hotosm/tasking-manager
container_name: app
env_file: tasking-manager.env
environment:
- POSTGRES_ENDPOINT=postgresql
depends_on:
- postgresql
expose:
- "5000"
ports:
- "5000:5000"
links:
- postgresql
volumes:
- node_modules:/usr/src/app/client/node_modules
# Migration service
migration:
image: hotosm/tasking-manager
env_file: tasking-manager.env
restart: on-failure
environment:
- POSTGRES_ENDPOINT=postgresql
depends_on:
- postgresql
links:
- postgresql
command: python manage.py db upgrade
# Database
postgresql:
image: mdillon/postgis:9.6
container_name: postgresql
env_file: tasking-manager.env
# logging:
# driver: none
expose:
- "5432"
volumes:
node_modules: