-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
47 lines (43 loc) · 870 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
version: "3.8"
services:
api-server:
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongodb-container
ports:
- 8081:8081
networks:
- project
restart: always
environment:
MONGO_URI: mongodb://mongodb-container:27017
DATABASE: "testDB"
TOKEN_SECRET: "SECRET"
ROOT_ADMIN: "MasterAdmin"
ROOT_PASSWORD: "789xyz"
ROOT_EMAIL: "[email protected]"
ROOT_GROUP: "MasterAdmins"
REGISTRATION: "ON"
PORT: "8081"
HTTPS: "OFF"
CERT: ""
KEY: ""
ENV: docker-dev
mongodb-container:
image: mongo:latest
restart: always
ports:
- 27017:27017
networks:
- project
expose:
- 27017
volumes:
- mongodb_data_container:/data/db
networks:
project:
driver: bridge
volumes:
mongodb_data_container: