Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions deploy/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
services:
# --------------------------------------------------
# C. REVERSE PROXY AND SSL SERVICES
# --------------------------------------------------

# This is the reverse proxy and SSL service
traefik:
image: traefik:3
command:
# traefik static configuration via command line
# enable accesslog
- "--accesslog.format=common"
# http endpoint
- "--entrypoints.web.address=:80"
# https endpoint
- "--entrypoints.websecure.address=:443"
- "--entrypoints.websecure.asdefault"
- "--entrypoints.websecure.http.tls.certresolver=letsencrypt"
# http to https redirect
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
# ACME SSL certificate generation
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.letsencrypt.acme.email=${MW_ADMIN_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
# additionial traefik dynamic configuration via config file
- "--providers.file.filename=/etc/traefik/dynamic.yml"
# Uncomment this line to only test ssl generation first, makes sure you don't run into letsencrypt rate limits
# - "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
# Uncomment the following line for debugging, also expose port 8080 below
# - "--api.dashboard=true"
# - "--api.insecure=true"
# - "--log.level=DEBUG"
restart: unless-stopped
ports:
- 80:80
- 443:443
# traefik dashboard
# - 8080:8080
volumes:
- ./config/traefik-dynamic.yml:/etc/traefik/dynamic.yml:ro
- traefik-letsencrypt-data:/letsencrypt
environment:
WIKIBASE_PUBLIC_HOST: ${WIKIBASE_PUBLIC_HOST}
WDQS_PUBLIC_HOST: ${WDQS_PUBLIC_HOST}

volumes:
# C. REVERSE PROXY AND SSL SERVICES DATA
traefik-letsencrypt-data:
49 changes: 0 additions & 49 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,53 +153,6 @@ services:
interval: 10s
start_period: 2m

# --------------------------------------------------
# C. REVERSE PROXY AND SSL SERVICES
# --------------------------------------------------

# This is the reverse proxy and SSL service
traefik:
image: traefik:3
command:
# traefik static configuration via command line
# enable accesslog
- "--accesslog.format=common"
# http endpoint
- "--entrypoints.web.address=:80"
# https endpoint
- "--entrypoints.websecure.address=:443"
- "--entrypoints.websecure.asdefault"
- "--entrypoints.websecure.http.tls.certresolver=letsencrypt"
# http to https redirect
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
# ACME SSL certificate generation
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.letsencrypt.acme.email=${MW_ADMIN_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
# additionial traefik dynamic configuration via config file
- "--providers.file.filename=/etc/traefik/dynamic.yml"
# Uncomment this line to only test ssl generation first, makes sure you don't run into letsencrypt rate limits
# - "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
# Uncomment the following line for debugging, also expose port 8080 below
# - "--api.dashboard=true"
# - "--api.insecure=true"
# - "--log.level=DEBUG"
restart: unless-stopped
ports:
- 80:80
- 443:443
# traefik dashboard
# - 8080:8080
volumes:
- ./config/traefik-dynamic.yml:/etc/traefik/dynamic.yml:ro
- traefik-letsencrypt-data:/letsencrypt
environment:
WIKIBASE_PUBLIC_HOST: ${WIKIBASE_PUBLIC_HOST}
WDQS_PUBLIC_HOST: ${WDQS_PUBLIC_HOST}

volumes:
# A. CORE WIKIBASE SUITE SERVICES DATA
wikibase-image-data:
Expand All @@ -208,5 +161,3 @@ volumes:
wdqs-data:
elasticsearch-data:
quickstatements-data:
# C. REVERSE PROXY AND SSL SERVICES DATA
traefik-letsencrypt-data:
1 change: 1 addition & 0 deletions test/setup/make-test-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export const defaultSettings: Partial<TestSettings> = {
],
composeFiles: [
'../deploy/docker-compose.yml',
'../deploy/docker-compose.override.yml',
'suites/docker-compose.override.yml'
]
};
Loading