checkpoint
This commit is contained in:
parent
e76fb9fb10
commit
a87238010d
@ -29,4 +29,7 @@ RUN chmod 755 ./db.sh
|
|||||||
RUN alias tsc=node_modules/typescript/bin/tsc
|
RUN alias tsc=node_modules/typescript/bin/tsc
|
||||||
COPY docker/start_server.sh ./start_server.sh
|
COPY docker/start_server.sh ./start_server.sh
|
||||||
RUN chmod 755 ./start_server.sh
|
RUN chmod 755 ./start_server.sh
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "./start_server.sh"]
|
ENTRYPOINT ["sh", "./start_server.sh"]
|
||||||
|
@ -2,8 +2,10 @@ services:
|
|||||||
|
|
||||||
cic-frontend-auth:
|
cic-frontend-auth:
|
||||||
networks:
|
networks:
|
||||||
- web
|
- traefik
|
||||||
image: localhost:5000/cic-auth-proxy:latest
|
image: localhost:5000/cic-auth-proxy:latest
|
||||||
|
ports:
|
||||||
|
- 8080
|
||||||
environment:
|
environment:
|
||||||
GPG_TRUSTED_PUBLICKEY_FINGERPRINT: CCE2E1D2D0E36ADE0405E2D0995BB21816313BD5
|
GPG_TRUSTED_PUBLICKEY_FINGERPRINT: CCE2E1D2D0E36ADE0405E2D0995BB21816313BD5
|
||||||
GPG_IMPORT_DIR: /usr/src/cic-auth-proxy/meta/tests/testdata/dev/
|
GPG_IMPORT_DIR: /usr/src/cic-auth-proxy/meta/tests/testdata/dev/
|
||||||
@ -19,33 +21,31 @@ services:
|
|||||||
|
|
||||||
cic-meta-server:
|
cic-meta-server:
|
||||||
networks:
|
networks:
|
||||||
- web
|
- traefik
|
||||||
ports:
|
- default
|
||||||
- 8000
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.cic-meta-server.rule=Host(`meta.localhost`)"
|
- "traefik.http.routers.cic-meta-server.rule=Path(`/protected`)"
|
||||||
- "traefik.http.routers.entrypoints=web"
|
- "traefik.http.routers.cic-meta-server.middlewares=cic-auth"
|
||||||
#- "traefik.http.middlewares.${STACK_NAME?Variable not set}-meta.forwardauth.authResponseHeaders=WWW-Authenticate, Token"
|
- "traefik.http.middlewares.cic-auth.forwardauth.address=http://cic-frontend-auth/"
|
||||||
#- "traefik.http.middlewares.cic-meta-server.forwardauth.address=http://cic-frontend-auth"
|
- "traefik.http.middlewares.cic-auth.forwardauth.authRequestHeaders=Authorization"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
networks:
|
networks:
|
||||||
- web
|
- traefik
|
||||||
image: traefik:v2.2
|
image: traefik:v2.5
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "8090:8080"
|
- "8080:8080"
|
||||||
command:
|
command:
|
||||||
# Enable Docker in Traefik, so that it reads labels from Docker services
|
# Enable Docker in Traefik, so that it reads labels from Docker services
|
||||||
- --providers.docker
|
- --providers.docker
|
||||||
# Add a constraint to only use services with the label for this stack
|
# Add a constraint to only use services with the label for this stack
|
||||||
# Do not expose all Docker services, only the ones explicitly exposed
|
# Do not expose all Docker services, only the ones explicitly exposed
|
||||||
- --providers.docker.exposedbydefault=false
|
- --providers.docker.exposedbydefault=false
|
||||||
|
- "--providers.docker.network=traefik"
|
||||||
# Disable Docker Swarm mode for local development
|
# Disable Docker Swarm mode for local development
|
||||||
# - --providers.docker.swarmmode
|
# - --providers.docker.swarmmode
|
||||||
# Enable the access log, with HTTP requests
|
# Enable the access log, with HTTP requests
|
||||||
@ -53,16 +53,14 @@ services:
|
|||||||
# - log.level=DEBUG
|
# - log.level=DEBUG
|
||||||
# Enable the Traefik log, for configurations and errors
|
# Enable the Traefik log, for configurations and errors
|
||||||
- --log
|
- --log
|
||||||
|
- --log.level=DEBUG
|
||||||
# Enable the Dashboard and API
|
# Enable the Dashboard and API
|
||||||
- --api
|
- --api
|
||||||
# Enable the Dashboard and API in insecure mode for local development
|
# Enable the Dashboard and API in insecure mode for local development
|
||||||
- --api.insecure=true
|
- --api.insecure=true
|
||||||
- "--entrypoints.web.address=:80"
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
#- traefik.http.routers.traefik-public-http.rule=Host(`localhost`)
|
|
||||||
#- traefik.http.services.traefik-public.loadbalancer.server.port=80
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
traefik:
|
||||||
external: false
|
name: "traefik"
|
||||||
|
Loading…
Reference in New Issue
Block a user