forked from Creatly/creatly-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.04 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
version: '3.4'
services:
app:
image: creatly-backend-app
container_name: creatly-backend-app
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:8000
depends_on:
- mongodb
volumes:
- ./.bin/:/root/
- ./configs/:/root/configs/
- ./templates/:/root/templates/
env_file:
- .env
debug:
image: creatly-backend-debug
container_name: creatly-backend-debug
build:
context: .
dockerfile: Dockerfile.debug
ports:
- "8000:8000"
- "2345:2345"
depends_on:
- mongodb
volumes:
- ./.bin/:/root/
- ./configs/:/root/configs/
- ./templates/:/root/templates/
env_file:
- .env
mongodb:
image: mongo:4.4-bionic
container_name: mongodb
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGODB_DATABASE=coursePlatform
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=qwerty
volumes:
- ./.data/db:/data/db
ports:
- 27018:27017