-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlocal.yml
More file actions
67 lines (60 loc) · 1.43 KB
/
Copy pathlocal.yml
File metadata and controls
67 lines (60 loc) · 1.43 KB
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.4"
# Don't expose credentials like this in production!
x-common-variables: &common-variables
RABBITMQ_DEFAULT_USER: DEV_USER
RABBITMQ_DEFAULT_PASS: CHANGE_ME
RABBITMQ_HOST: rabbit
MONGO_INITDB_ROOT_USERNAME: DEV_USER
MONGO_INITDB_ROOT_PASSWORD: CHANGE_ME
MONGO_INITDB_DATABASE: mousetrap
MONGO_HOST: mongo
ME_CONFIG_MONGODB_ADMINUSERNAME: DEV_USER
ME_CONFIG_MONGODB_ADMINPASSWORD: CHANGE_ME
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_BASICAUTH_USERNAME: DEV_USER
ME_CONFIG_BASICAUTH_PASSWORD: CHANGE_ME
services:
rabbit:
image: rabbitmq:management
restart: always
ports:
- 5672:5672
- 15672:15672
environment: *common-variables
mongo:
image: mongo
restart: always
ports:
- 27017:27017
environment: *common-variables
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment: *common-variables
depends_on:
- mongo
worker_1:
image: mousetrap/worker_1:latest
restart: always
environment: *common-variables
depends_on:
- rabbit
worker_2:
image: mousetrap/worker_2:latest
restart: always
environment: *common-variables
depends_on:
- rabbit
- mongo
api_app:
image: mousetrap/api_app:latest
restart: always
ports:
- 8000:8000
environment: *common-variables
depends_on:
- rabbit
- mongo