-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose-prod.yml
68 lines (60 loc) · 1.02 KB
/
docker-compose-prod.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
version: "3.7"
services:
app:
image: 127.0.0.1/cronmon
environment:
CONTAINER_ROLE: app
build:
context: .
dockerfile: docker/Dockerfile
depends_on:
- redis
networks:
- private
- mysql-router
expose:
- "80"
secrets:
- source: dotenv
target: .env
scheduler:
image: 127.0.0.1/cronmon
environment:
CONTAINER_ROLE: scheduler
depends_on:
- app
networks:
- private
- mysql-router
secrets:
- source: dotenv
target: .env
queue:
image: 127.0.0.1/cronmon
environment:
CONTAINER_ROLE: queue
depends_on:
- app
networks:
- private
- mysql-router
secrets:
- source: dotenv
target: .env
redis:
image: redis:4
networks:
- private
volumes:
- redis:/data
volumes:
redis:
driver: "local"
networks:
private:
mysql-router:
external: true
secrets:
dotenv:
external: true
name: cronmon-dotenv-2019-03-29