Skip to content

Instantly share code, notes, and snippets.

@bayasdev
Created December 12, 2022 20:29
Show Gist options
  • Save bayasdev/0bec60c2e949164218d4522e7abff788 to your computer and use it in GitHub Desktop.
Save bayasdev/0bec60c2e949164218d4522e7abff788 to your computer and use it in GitHub Desktop.
Docker Compose: Drupal + Traefik
version: '3'
services:
drupal:
image: drupal
restart: always
ports:
- 8088:80
volumes:
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
- drupal-themes:/var/www/html/themes
- drupal-sites:/var/www/html/sites
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.drupal.rule=Host(`drupal.bayas.dev`)"
# - "traefik.http.routers.drupal.entrypoints=websecure"
# - "traefik.http.routers.drupal.tls.certresolver=production"
volumes:
drupal-modules:
drupal-profiles:
drupal-themes:
drupal-sites:
# networks:
# default:
# name: homelab
# external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment