-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.local_deploy.yml
166 lines (163 loc) · 3.64 KB
/
docker-compose.local_deploy.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
version: "3.9"
secrets:
DOG_API_TOKEN:
file: ./compose_secrets.txt
DOG_AGENT_BROKER_PASSWORD:
file: ./compose_secrets.txt
DOG_TRAINER_SMTP_PASSWORD:
file: ./compose_secrets.txt
DOG_TRAINER_DB_PASSWORD:
file: ./compose_secrets.txt
DOG_TRAINER_BROKER_PASSWORD:
file: ./compose_secrets.txt
services:
control:
container_name: "control"
build:
context: "./control"
ports:
- "22:22"
environment:
- DOG_API_TOKEN=/var/run/dog_api_token
- DOG_API_ENDPOINT=http://kong:8000/api/V2
- TF_VAR_dog_api_token_docker=/var/run/dog_api_token
secrets:
- DOG_API_TOKEN
depends_on:
- "dog_trainer"
- "dog_agent"
- "dog_agent_ex"
csc:
container_name: "csc"
build:
context: "./csc"
environment:
- NGINX_PORT=9000
- VIRTUAL_HOST=dog
- VIRTUAL_PATH=/csc
- PORT=9000
ports:
- "9000:9000"
dog_agent_ex:
container_name: "dog-agent-ex"
build:
context: "./dog_agent_ex"
dockerfile: Dockerfile.local_deploy
depends_on:
- "csc"
- "dog_trainer"
- "rabbitmq"
cap_add:
- NET_ADMIN
environment:
- SHELL=/bin/sh
volumes:
- ./dog_agent_ex_home:/root
dog_agent:
container_name: "dog-agent"
build:
context: "./dog_agent"
dockerfile: Dockerfile.local_deploy
depends_on:
- "csc"
- "dog_trainer"
- "rabbitmq"
cap_add:
- NET_ADMIN
environment:
- SHELL=/bin/sh
volumes:
- ./dog_agent_home:/root
secrets:
- DOG_AGENT_BROKER_PASSWORD
nginx-proxy:
container_name: "nginx-proxy"
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
- DEFAULT_HOST=dog
depends_on:
- "kong"
- "dog_park"
dog_park:
container_name: "dog-park"
build: "./dog_park"
environment:
- NGINX_PORT=3030
- REACT_APP_DOG_API_HOST=http://dog
- VIRTUAL_HOST=dog
- VIRTUAL_PATH=/
depends_on:
- "dog_trainer"
dog_trainer:
environment:
- VIRTUAL_PORT=7070
- VIRTUAL_HOST=dog
- VIRTUAL_PATH=/api
container_name: "dog-trainer"
build:
context: "./dog_trainer"
dockerfile: Dockerfile.local_deploy
depends_on:
- "csc"
- "rethinkdb"
- "rabbitmq"
ports:
- "7070:7070"
volumes:
- ./dog_trainer_home:/root
secrets:
- DOG_TRAINER_SMTP_PASSWORD
- DOG_TRAINER_DB_PASSWORD
- DOG_TRAINER_BROKER_PASSWORD
kong:
container_name: "kong"
build:
context: "./kong"
dockerfile: Dockerfile
environment:
- VIRTUAL_HOST=kong
- VIRTUAL_PATH=/api
- KONG_DATABASE=off
- KONG_PROXY_ACCESS_LOG=/dev/stdout
- KONG_ADMIN_ACCESS_LOG=/dev/stdout
- KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_ERROR_LOG=/dev/stderr
- KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl
- KONG_DECLARATIVE_CONFIG=/kong.yml
depends_on:
- "csc"
- "dog_trainer"
ports:
- "8000:8000"
- "8443:8443"
- "8001:8001"
- "8444:8444"
rethinkdb:
container_name: "rethinkdb"
image: "rethinkdb"
ports:
- "8080:8080"
- "28015:28015"
rabbitmq:
container_name: "rabbitmq"
build: ./rabbitmq
#image: "rabbitmq:management"
environment:
- RABBITMQ_DEFAULT_VHOST=dog
ports:
- "5673:5673"
- "15672:15672"
depends_on:
- "csc"
flan:
container_name: "flan"
build:
context: "./flan"
environment:
- NGINX_PORT=80
- VIRTUAL_HOST=dog
- VIRTUAL_PATH=/flan_api