-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.25 KB
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
version: '3.7'
services:
bulb-db:
image: mongo:bionic
container_name: ${DB_HOST}-${APP_ENV}
ports:
- ${DB_PORT}:${DB_PORT}
expose:
- ${DB_PORT}
volumes:
- ./data/bulb-db-${APP_ENV}:/usr/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=${DB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
- MONGO_INITDB_DATABASE=${DB_NAME}
command: mongod --port ${DB_PORT}
bulb-api:
container_name: 'bulb-api-${APP_ENV}'
build: .
ports:
- ${SERVICE_PORT}:${SERVICE_PORT}
expose:
- ${SERVICE_PORT}
environment:
- SERVICE_URL=${SERVICE_URL}
- SERVICE_PORT=${SERVICE_PORT}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- MANAGE_USERNAME=${MANAGE_USERNAME}
- MANAGE_PASSWORD=${MANAGE_PASSWORD}
- SC_RUN_INTERVAL_DAYS=${SC_RUN_INTERVAL_DAYS}
- SC_DELETE_THRESHOLD_DAYS=${SC_DELETE_THRESHOLD_DAYS}
- DOCS_SERVICE_URL=${DOCS_SERVICE_URL}
- DOCS_SERVICE_REPO_OWNER=${DOCS_SERVICE_REPO_OWNER}
- DOCS_SERVICE_REPO_NAME=${DOCS_SERVICE_REPO_NAME}
- DOCS_SERVICE_REPO_BRANCH=${DOCS_SERVICE_REPO_BRANCH}
depends_on:
- bulb-db