-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.17 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
version: '3.3'
services:
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: 'user'
RABBITMQ_DEFAULT_PASS: 'rahasia'
volumes:
- ./.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ./.docker-conf/rabbitmq/log/:/var/log/rabbitmq
mongo:
env_file:
- ./.env
container_name: 'mongo-sejuta'
image: mongo:latest
ports:
- '${PORT}:27017'
environment:
- 'MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}'
- 'MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}'
restart: always
volumes:
- ./.docker-conf/mongodb/data/db/:/data/db
user:
build: ./user
image: user/sejuta
container_name: user-sejuta
depends_on:
- rabbitmq
- mongo
env_file: ./user/.env
ports:
- '${APP_PORT}:${APP_PORT}'
restart: always
market:
build: ./market
image: market/sejuta
container_name: market-sejuta
depends_on:
- rabbitmq
- mongo
env_file: ./market/.env
ports:
- '${APP_PORT}:${APP_PORT}'
restart: always