-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 963 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
version: "3.3"
services:
api:
build:
context: .
image: registry.gitlab.com/intellidrone/api_new:${API_VERSION:-latest}
environment:
SWAGGER_HOST: ${SWAGGER_HOST:-localhost:${PORT}}
SWAGGER_BASE_PATH: ${SWAGGER_BASE_PATH:-/api/}
DB_MAIN_CLIENT: ${DB_MAIN_CLIENT:-docker}
DATABASE_FILE: ${DATABASE_FILE:-./assets/database.json}
JWT_FILE: ${JWT_FILE:-./assets/key.b64.pub}
APP_TOKENS_FILE: ${APP_TOKENS_FILE:-./assets/app_tokens.json}
PORT: ${PORT:-3000}
volumes:
- ./data/node:/usr/app/assets
ports:
- "3000:${PORT_APP:-3000}"
networks:
- db
depends_on:
- database
database:
image: mongo:4.0
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 'DockerPassWORD'
ports:
- "27017:${PORT_DB:-27017}"
volumes:
- ${DATA_DB:-/data/db}:/data/db
networks:
- db
networks:
db:
driver: overlay