Deploy a simple webserver docker-compose stack

The beginning of a revamp of FRITA infrastructure into containers
This commit is contained in:
2022-11-18 02:44:05 -05:00
parent c9b21fa712
commit 62665a67b7
16 changed files with 144 additions and 188 deletions

View File

@@ -0,0 +1,30 @@
version: '3.5'
networks:
traefik:
name: traefik
services:
traefik:
image: traefik:2.2
command:
- --api.dashboard=true
- --api.debug=true
- --providers.docker=true
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.web.http.redirections.entrypoint.permanent=true
- --entrypoints.websecure.address=:443
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
traefik.http.routers.api.rule: Host(`${TRAEFIK_DOMAIN}`)
traefik.http.routers.api.entrypoints: local
traefik.http.routers.api.service: api@internal
traefik.http.routers.api.tls: true
networks:
- traefik