-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 975 Bytes
/
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.4"
services:
mymongo:
image: mongo
container_name: dash_db
environment:
MONGO_INITDB_ROOT_USERNAME: achandrapaul_dev
MONGO_INITDB_ROOT_PASSWORD: 123456789
MONGO_INITDB_DATABASE: resume
volumes:
- type: volume
source: data
target: /data/db
ports:
- 27017:27017
- 28017:28017
healthcheck:
test: "exit 0"
dash_api:
container_name: dash_api
build:
context: .
dockerfile: Dockerfile
ports:
- 5000:5000
- 5678:5678
env_file:
- .env
depends_on:
- mymongo
links:
- mymongo
environment:
INITDB_ROOT_USERNAME: achandrapaul_dev
INITDB_ROOT_PASSWORD: 123456789
DB_HOST: mymongo
DB_PORT: 27017
INITDB_DATABASE: admin
# db:
# image: rethinkdb:2.4.1-buster-slim
# container_name: dash_db
# volumes:
# - .:/data
volumes:
data: