forked from ConservationInternational/trends.earth-API
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-develop.yml
81 lines (76 loc) · 1.89 KB
/
docker-compose-develop.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
version: '2'
services:
develop:
extends:
file: base-develop.yml
service: base
container_name: misland-api-develop
ports:
- "3000:3000"
env_file:
- develop.env
command: develop
volumes:
- ./misland_api:/opt/misland-api-api/misland_api
- ./migrations:/opt/misland-api/migrations
- /var/run/docker.sock:/tmp/docker.sock
- ./data/scripts:/data/scripts
restart: always
links:
- misland-api-database
- registry
- redis
environment:
- WAIT_HOSTS=misland-api-database:5432
- WAIT_TIMEOUT=120
worker:
extends:
file: base.yml
service: base
container_name: misland-api-worker-develop
env_file:
- develop.env
command: worker
volumes:
- ./misland_api:/opt/misland-api/misland_api
- ./migrations:/opt/misland-api/migrations
- /var/run/docker.sock:/tmp/docker.sock
- ./data/scripts:/data/scripts
restart: always
links:
- misland-api-database
- registry
- redis
environment:
- WAIT_HOSTS=misland-api-database:5432
- WAIT_TIMEOUT=120
misland-api-database:
image: postgres:9.6
container_name: misland-api-database
env_file:
- prod.env
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432
restart: always
registry:
image: registry:2.6.1
container_name: misland-api-registry
env_file:
- develop.env
ports:
- 5100:5000
restart: always
# volumes:
# - /var/lib/registry:/var/lib/registry
redis:
image: redis
container_name: misland-api-redis
env_file:
- develop.env
ports:
- 6379
restart: always
volumes:
postgres-data: