forked from camptocamp/terraboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.34 KB
/
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
48
49
50
51
52
53
---
version: '3'
services:
terraboard:
build:
context: .
dockerfile: Dockerfile
image: camptocamp/terraboard:devel
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_DEFAULT_REGION}
AWS_BUCKET: ${AWS_BUCKET}
BASE_URL: /terraboard/
DB_PASSWORD: mypassword
AWS_DYNAMODB_TABLE: ${AWS_DYNAMODB_TABLE}
AWS_KEY_PREFIX: ${AWS_KEY_PREFIX}
TERRABOARD_LOG_LEVEL: ${TERRABOARD_LOG_LEVEL}
TERRABOARD_LOGOUT_URL: /oauth2/sign_in
links:
- "db"
volumes:
- ./static:/static:ro
proxy:
image: camptocamp/oauth2_proxy
command:
- -http-address=0.0.0.0:80
- -upstream=http://terraboard:8080/terraboard/
- -provider=github
- -email-domain=*
- -cookie-secure=false
- -redirect-url=http://localhost/oauth2/callback
environment:
OAUTH2_PROXY_CLIENT_ID: ${OAUTH_CLIENT_ID}
OAUTH2_PROXY_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET}
OAUTH2_PROXY_COOKIE_SECRET: ${OAUTH_COOKIE_SECRET}
ports:
- 80:80
links:
- terraboard:terraboard
db:
image: postgres:9.5
environment:
POSTGRES_USER: gorm
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: gorm
volumes:
- tb-data:/var/lib/postgresql/data
volumes:
tb-data: {}