-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
123 lines (112 loc) · 3.11 KB
/
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
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
version: '3'
services:
# consul:
# command: -server -bootstrap -rejoin
# hostname: consul-server
# image: progrium/consul:latest
# networks:
# - vrddt_droplets_net
# ports:
# - "8300:8300"
# - "8400:8400"
# - "8500:8500"
# - "8600:53/udp"
mongo:
environment:
MONGO_INITDB_DATABASE: vrddt
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_ROOT_USERNAME: admin
hostname: mongodb-server
image: mongo
networks:
- vrddt_droplets_net
ports:
- "27017:27017"
restart: always
volumes:
- ./config/mongo/001_users.js:/docker-entrypoint-initdb.d/001_users.js:ro
- mongodb:/data/db
- mongodb_config:/data/configdb
mongo-express:
environment:
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
hostname: mongo-express
image: mongo-express
networks:
- vrddt_droplets_net
ports:
- "8081:8081"
restart: always
rabbitmq:
environment:
RABBITMQ_DEFAULT_PASS: password
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_VHOST: /
RABBITMQ_ERLANG_COOKIE: mycookie
hostname: rabbitmq-server
image: rabbitmq:management
networks:
- vrddt_droplets_net
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq:/var/lib/rabbitmq
# - rabbitmq_config:/etc/rabbitmq/rabbitmq.config:ro
# vrddt-admin:
# entrypoint: dockerize -timeout 30s -wait tcp://mongo:27017 -wait tcp://rabbitmq:5672 /app/vrddt-admin --config /app/config/config.admin.toml
# hostname: vrddt-admin
# image: johnwyles/vrddt-admin:${VRDDT_VERSION}
# links:
# - mongo
# - rabbitmq
# networks:
# - vrddt_droplets_net
vrddt-api:
entrypoint: dockerize -timeout 30s -wait tcp://mongo:27017 -wait tcp://rabbitmq:5672 /app/vrddt-api --config /app/config/config.api.toml
hostname: vrddt-api
image: johnwyles/vrddt-api:${VRDDT_VERSION}
links:
- mongo
- rabbitmq
networks:
- vrddt_droplets_net
ports:
- "9090:9090"
# vrddt-cli:
# entrypoint: dockerize -timeout 30s -wait tcp://vrddt-api:9090 /app/vrddt-cli --config /app/config/config.cli.toml
# hostname: vrddt-cli
# image: johnwyles/vrddt-cli:${VRDDT_VERSION}
# links:
# - vrddt-api
# networks:
# - vrddt_droplets_net
vrddt-web:
entrypoint: dockerize -timeout 30s -wait tcp://vrddt-api:9090 /app/vrddt-web --config /app/config/config.web.toml
hostname: vrddt-api
image: johnwyles/vrddt-web:${VRDDT_VERSION}
links:
- mongo
- rabbitmq
- vrddt-api
networks:
- vrddt_droplets_net
ports:
- "8080:8080"
vrddt-worker:
entrypoint: dockerize -timeout 30s -wait tcp://mongo:27017 -wait tcp://rabbitmq:5672 /app/vrddt-worker --config /app/config/config.worker.toml processor
hostname: vrddt-worker
image: johnwyles/vrddt-worker:${VRDDT_VERSION}
links:
- mongo
- rabbitmq
networks:
- vrddt_droplets_net
networks:
vrddt_droplets_net:
volumes:
mongodb:
mongodb_config:
rabbitmq:
# driver: local