-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.31 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
version: '2.1'
services:
nginx-test:
image: nginx:1.19.4-alpine
restart: always
depends_on:
- app
labels:
- "traefik.enable=true"
- "traefik.http.routers.narra-web.rule=Host(`${APP_SITE}`)"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ${APP_ROOT}/test:/usr/share/nginx/html:ro
- ${APP_ROOT}/nginx.conf:/etc/nginx/conf.d/default.conf:ro
app:
image: narra
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.narra-dev.rule=Host(`${APP_SITE}`) && Path(`/login`,`/auth`,`/401/`)"
- "traefik.http.services.narra-dev.loadbalancer.server.port=8080"
- "traefik.http.middlewares.narra-dev.forwardauth.address=http://${APP_SITE}/auth"
- "traefik.http.middlewares.narra-dev.forwardauth.authResponseHeaders=X-Username"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command:
--log.debug --as.my_url ${APP_PROTO}://${APP_SITE} --as.cookie_name narra_dev_token
# For traefik:
# --as.do401
environment:
- AS_TYPE
- AS_HOST
- AS_TEAM
- AS_CLIENT_ID
- AS_CLIENT_KEY
- AS_COOKIE_SIGN_KEY
- AS_COOKIE_CRYPT_KEY
build:
context: .
args:
- GOLANG_VERSION
- GOPROXY