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 - WORDPRESS_EMAIL=admin@mail.com - 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