Ultima attività 1749128886

Wordpress simple docker compose setup for Docker

supanadit ha revisionato questo gist 1749128884. Vai alla revisione

1 file changed, 39 insertions

compose.yaml(file creato)

@@ -0,0 +1,39 @@
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
Più nuovi Più vecchi