-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.develop.yml
89 lines (82 loc) · 1.62 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
82
83
84
85
86
87
88
89
version: "3.8"
services:
manager:
build: .
environment:
PORT: 3000
ports:
- target: 3000
published: 3000
environment:
ENVIRONMENT: dev
DEBUG: "True"
env_file:
- develop.env
volumes:
- ./gefapi:/opt/gef-api/gefapi
- ./migrations:/opt/gef-api/migrations
networks:
- backend
- db
worker:
image: trendsearth_api
build: .
environment:
ENVIRONMENT: dev
DEBUG: "True"
env_file:
- develop.env
volumes:
- ./gefapi:/opt/gef-api/gefapi
- ./migrations:/opt/gef-api/migrations
- /var/run/docker.sock:/tmp/docker.sock
networks:
- backend
- db
redis:
image: redis
container_name: trendsearth-api-redis
ports:
- target: 6379
networks:
- backend
deploy:
placement:
constraints: [node.role == manager]
resources:
reservations:
cpus: "0.25"
memory: 100M
database:
image: postgres:9.6
container_name: trendsearth-api-database
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
POSTGRES_DB: gef
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- target: 5432
published: 5432
env_file:
- staging.env
networks:
- db
registry:
image: registry:2.8.1
container_name: trendsearth-api-registry
volumes:
- registry-data:/var/lib/registry
env_file:
- staging.env
ports:
- target: 5000
published: 5000
networks:
- backend
volumes:
postgres-data:
registry-data:
networks:
db: