-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (54 loc) · 1.37 KB
/
docker-compose.yaml
File metadata and controls
57 lines (54 loc) · 1.37 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
nginx:
restart: unless-stopped
build: ./nginx
ports:
- "80:8080"
depends_on:
- web
- oauth2-proxy
redis:
build: ./redis
restart: unless-stopped
environment:
REDIS_PASSWORD: 'very secret'
oauth2-proxy:
build: ./oauth2
depends_on:
redis:
condition: service_healthy
environment:
OAUTH2_PROXY_REDIS_PASSWORD: 'very secret'
OAUTH2_PROXY_COOKIE_SECRET: 'vry secure cokie' # cookie_secret must be 16, 24, or 32 bytes
OAUTH_CLIENT_ID: "1dbc1e96-268d-41ad-894a-92a9fb85f954"
OAUTH2_PROXY_REDIRECT_URL: http://localhost/oauth2/callback
CLIENT_SECRET_FILE: /run/secrets/client_secret
secrets:
- client_secret
api:
build:
context: ./api
restart: unless-stopped
environment:
ENVIRONMENT: development
FLASK_DEBUG: "true"
TABLE_KEY: ${TABLE_KEY}
APPINSIGHTS_CON_STRING: ${APPINSIGHTS_CON_STRING}
volumes:
- ./api/src:/app/src
web:
build:
context: ./web
target: development
args:
APPINSIGHTS_CON_STRING: ${APPINSIGHTS_CON_STRING}
restart: unless-stopped
stdin_open: true
environment:
HMR_CLIENT_PORT: ${HMR_CLIENT_PORT:-}
USE_POLLING: ${USE_POLLING:-false}
volumes:
- ./web/src:/code/src
secrets:
client_secret:
file: ./secrets/client_secret.txt