compose.yaml
· 1.3 KiB · YAML
Bruto
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
| 1 | networks: |
| 2 | default: |
| 3 | name: pratama-network |
| 4 | external: true |
| 5 | |
| 6 | services: |
| 7 | wordpress: |
| 8 | image: bitnami/wordpress:6 |
| 9 | container_name: wordpress |
| 10 | labels: |
| 11 | # Traefik automatically read this, as long as you on the same network with Traefik |
| 12 | # This is called label way to routing your sites |
| 13 | - "traefik.enable=true" |
| 14 | # Change the port of your application |
| 15 | - "traefik.http.services.blog.loadbalancer.server.port=8080" |
| 16 | - "traefik.http.routers.blog.entrypoints=web,websecure" |
| 17 | # This is your domain |
| 18 | - "traefik.http.routers.blog.rule=Host(`supanadit.web.id`)" |
| 19 | - "traefik.http.routers.blog.tls=true" |
| 20 | - "traefik.http.routers.blog.tls.certresolver=lets-encrypt" |
| 21 | restart: always |
| 22 | environment: |
| 23 | - WORDPRESS_USERNAME=admin |
| 24 | - WORDPRESS_PASSWORD=secret |
| 25 | - WORDPRESS_EMAIL=admin@mail.com |
| 26 | - WORDPRESS_FIRST_NAME=Supan Adit |
| 27 | - WORDPRESS_LAST_NAME=Pratama |
| 28 | - WORDPRESS_BLOG_NAME=Personal Blogging |
| 29 | - MYSQL_CLIENT_FLAVOR=mariadb |
| 30 | - WORDPRESS_DATABASE_HOST=mariadb |
| 31 | - WORDPRESS_DATABASE_PORT_NUMBER=3306 |
| 32 | - WORDPRESS_DATABASE_NAME=wordpress |
| 33 | - WORDPRESS_DATABASE_USER=root |
| 34 | - WORDPRESS_DATABASE_PASSWORD=secret |
| 35 | - WORDPRESS_ENABLE_REVERSE_PROXY=false |
| 36 | - WORDPRESS_AUTO_UPDATE_LEVEL=minor |
| 37 | - BITNAMI_DEBUG=false |
| 38 | volumes: |
| 39 | - .data:/bitnami/wordpress |