Ajout docker compose et certificats

This commit is contained in:
Matthieu Lamalle 2023-03-02 15:20:14 +01:00 committed by Gitea
parent 4f3ac83623
commit 3495e59402
2 changed files with 30 additions and 1 deletions

23
docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: "2.4"
services:
oidc-test:
build:
context: ./
dockerfile: ./misc/dokku/Dockerfile
args:
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- http_proxy=${http_proxy:-}
- https_proxy=${https_proxy:-}
environment:
- LOG_LEVEL=0
- HTTP_ADDRESS=0.0.0.0:3002
- OIDC_CLIENT_ID=local-test
- OIDC_CLIENT_SECRET=local-test
- OIDC_ISSUER_URL=https://msedev.crous-toulouse.fr/auth/
- OIDC_REDIRECT_URL=http://localhost:3002
- OIDC_POST_LOGOUT_REDIRECT_URL=http://localhost:3002
ports:
- 3002:3002
network_mode: host

View File

@ -13,12 +13,18 @@ WORKDIR /src
RUN make ARCH_TARGETS=amd64 release
FROM alpine as certs
RUN apk update && apk add ca-certificates
FROM busybox
COPY --from=build /src/release/server-linux-amd64 /app
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
WORKDIR /app
ENV HTTP_ADDRESS=:80
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]
CMD ["bin/server", "-workdir", "/app", "-config", "server.yml"]