Skip to content

Instantly share code, notes, and snippets.

@supanadit
Created June 28, 2025 03:22
Show Gist options
  • Save supanadit/2f6ce21a7e9a66e4371dd8bb9b68d35a to your computer and use it in GitHub Desktop.
Save supanadit/2f6ce21a7e9a66e4371dd8bb9b68d35a to your computer and use it in GitHub Desktop.
networks:
default:
name: pratama-network
external: true
services:
wordpress:
image: bitnami/wordpress:6
container_name: wordpress
labels:
# Traefik automatically read this, as long as you on the same network with Traefik
# This is called label way to routing your sites
- "traefik.enable=true"
# Change the port of your application
- "traefik.http.services.blog.loadbalancer.server.port=8080"
- "traefik.http.routers.blog.entrypoints=web,websecure"
# This is your domain
- "traefik.http.routers.blog.rule=Host(`supanadit.web.id`)"
- "traefik.http.routers.blog.tls=true"
- "traefik.http.routers.blog.tls.certresolver=lets-encrypt"
restart: always
environment:
- WORDPRESS_USERNAME=admin
- WORDPRESS_PASSWORD=secret
- [email protected]
- WORDPRESS_FIRST_NAME=Supan Adit
- WORDPRESS_LAST_NAME=Pratama
- WORDPRESS_BLOG_NAME=Personal Blogging
- MYSQL_CLIENT_FLAVOR=mariadb
- WORDPRESS_DATABASE_HOST=mariadb
- WORDPRESS_DATABASE_PORT_NUMBER=3306
- WORDPRESS_DATABASE_NAME=wordpress
- WORDPRESS_DATABASE_USER=root
- WORDPRESS_DATABASE_PASSWORD=secret
- WORDPRESS_ENABLE_REVERSE_PROXY=false
- WORDPRESS_AUTO_UPDATE_LEVEL=minor
- BITNAMI_DEBUG=false
volumes:
- .data:/bitnami/wordpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment