Last active
October 9, 2024 09:31
-
-
Save numpde/7560398581adb1d40e019e0304d21866 to your computer and use it in GitHub Desktop.
WP/WC: Adminer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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