-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 829 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (35 loc) · 829 Bytes
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
version: '2'
services:
mongo:
image: 'bitnami/mongodb:latest'
restart: always
ports:
- '27017:27017'
environment:
- MONGODB_USERNAME=usr_mongo_db
- MONGODB_PASSWORD=pwd_mongo_db
- MONGODB_DATABASE=dployer
- MONGODB_ROOT_PASSWORD=password123
volumes:
- 'mongodb_data:/bitnami'
api:
depends_on:
- mongo
image: 'cavillo/dployer-api:latest'
environment:
- MONGO_AUTH_USER=usr_mongo_db
- MONGO_AUTH_PASSWORD=pwd_mongo_db
- MONGO_URL='mongodb://mongo'
ports:
- '8002:8002'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
client:
image: 'cavillo/dployer-client:latest'
environment:
- DPLOYER_API_URL=http://localhost:8002/api
ports:
- '3000:3000'
volumes:
mongodb_data:
driver: local