-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
39 lines (37 loc) · 947 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
services:
app:
image: antoinezanardi/werewolves-assistant-api-dev
container_name: app-dev
depends_on:
- mongodb
environment:
ENVIRONMENT: "development"
HOST: "0.0.0.0"
DATABASE_HOST: "mongodb-dev"
DATABASE_PORT: "27017"
DATABASE_NAME: "werewolves-assistant"
DATABASE_USERNAME: "dev"
DATABASE_PASSWORD: "speed_burger_is_the_best"
build:
context: ../../
target: development
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
mongodb:
container_name: mongodb-dev
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: "dev"
MONGO_INITDB_ROOT_PASSWORD: "speed_burger_is_the_best"
volumes:
- mongodb_data_container:/data/db
ports:
- "27017:27017"
restart: unless-stopped
volumes:
mongodb_data_container: