-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.override.yml
82 lines (75 loc) · 1.79 KB
/
docker-compose.override.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.8"
services:
api:
build:
target: development
image: template-api-dev
volumes:
- ./api/src/:/code/src
env_file:
- .env
environment:
ENVIRONMENT: local
LOGGING_LEVEL: debug
MONGODB_DATABASE: $MONGODB_DATABASE
MONGODB_USERNAME: $MONGODB_USERNAME
MONGODB_PASSWORD: $MONGODB_PASSWORD
AUTH_ENABLED: $AUTH_ENABLED
MONGODB_HOSTNAME: db
MONGODB_PORT: $MONGODB_PORT
OAUTH_TOKEN_ENDPOINT: $OAUTH_TOKEN_ENDPOINT
OAUTH_AUTH_ENDPOINT: $OAUTH_AUTH_ENDPOINT
OAUTH_WELL_KNOWN: $OAUTH_WELL_KNOWN
OAUTH_AUDIENCE: $OAUTH_AUDIENCE
OAUTH_AUTH_SCOPE: $AUTH_SCOPE
OAUTH_CLIENT_ID: $CLIENT_ID
SECRET_KEY: $SECRET_KEY
ports:
- "5000:5000"
depends_on:
- db
links:
- db
nginx:
build:
target: nginx-dev
web:
restart: unless-stopped
build:
target: development
context: ./web
args:
AUTH_ENABLED: $AUTH_ENABLED
AUTH_SCOPE: $AUTH_SCOPE
CLIENT_ID: $CLIENT_ID
TENANT_ID: $TENANT_ID
image: template-web-dev
stdin_open: true
volumes:
- ./web/src:/code/src
env_file:
- .env
environment:
- NODE_ENV=development
db:
volumes:
- database:/data/db
env_file:
- .env
environment:
MONGO_INITDB_ROOT_USERNAME: $MONGODB_USERNAME
MONGO_INITDB_ROOT_PASSWORD: $MONGODB_PASSWORD
volumes:
database:
# db-ui:
# image: mongo-express:0.49
# restart: unless-stopped
# ports:
# - "8081:8081"
# env_file:
# - .env
# environment:
# ME_CONFIG_MONGODB_SERVER: db
# ME_CONFIG_MONGODB_ADMINUSERNAME: $MONGODB_USERNAME
# ME_CONFIG_MONGODB_ADMINPASSWORD: $MONGODB_PASSWORD
# ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"