Skip to content

Instantly share code, notes, and snippets.

@numpde
Last active October 9, 2024 09:31
Show Gist options
  • Save numpde/7560398581adb1d40e019e0304d21866 to your computer and use it in GitHub Desktop.
Save numpde/7560398581adb1d40e019e0304d21866 to your computer and use it in GitHub Desktop.
WP/WC: Adminer
services:
adminer:
image: adminer
container_name: adminer
environment:
- ADMINER_DEFAULT_SERVER=db_nairobi # MySQL container name on internal_nairobi network
labels:
- "traefik.enable=true"
- "traefik.http.routers.adminer.rule=Host(`${ADMINER_HOST}`)" # Uses host from env file
- "traefik.http.routers.adminer.entrypoints=websecure"
- "traefik.http.routers.adminer.tls.certresolver=le"
networks:
- ecommerce # For Traefik routing
- internal_nairobi # For MySQL connectivity
networks:
ecommerce:
external: true
internal_nairobi:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment