Andreas Svanberg
4576338ec1
All checks were successful
Deploy to branch.dsv.su.se / deploy (pull_request) Successful in 11s
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
services:
|
|
web:
|
|
extends:
|
|
file: compose-parent.yaml
|
|
service: web
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
networks:
|
|
- blog-network
|
|
- traefik
|
|
environment:
|
|
- OAUTH2_AUTHORIZATION_URI=https://oauth2-${VHOST}/authorize
|
|
- OAUTH2_TOKEN_URI=https://oauth2-${VHOST}/exchange
|
|
- OAUTH2_USER_INFO_URI=https://oauth2-${VHOST}/verify
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${VHOST}`)"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt"
|
|
|
|
db:
|
|
extends:
|
|
file: compose-parent.yaml
|
|
service: db
|
|
networks:
|
|
- blog-network
|
|
|
|
oauth2:
|
|
extends:
|
|
file: compose-parent.yaml
|
|
service: oauth2
|
|
networks:
|
|
- traefik
|
|
environment:
|
|
CLIENT_REDIRECT_URI: https://${VHOST}/login/oauth2/code/local
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-oauth2.rule=Host(`oauth2-${VHOST}`)"
|
|
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-oauth2.tls.certresolver=letsencrypt"
|
|
|
|
networks:
|
|
blog-network:
|
|
traefik:
|
|
name: traefik
|
|
external: true
|