create
This commit is contained in:
commit
1eae607418
8
README.md
Normal file
8
README.md
Normal file
@ -0,0 +1,8 @@
|
||||
### blog-wp
|
||||
*docker configuration*
|
||||
|
||||
|
||||
Start: `sudo docker start blog-wp`
|
||||
Start `sudo docker compose -f /data/blog-wp/docker-compose.yml up -d`
|
||||
|
||||
Stop: `sudo docker stop blog-wp`
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
||||
services:
|
||||
wordpress:
|
||||
container_name: blog-wp
|
||||
image: wordpress:6.6.1-php8.1-apache
|
||||
restart: always
|
||||
networks:
|
||||
- proxynet
|
||||
env_file:
|
||||
- /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.nginx.rule=Host(`${SERVER_DOMAIN}`)"
|
||||
environment: &env
|
||||
WORDPRESS_DB_HOST: mariadb
|
||||
WORDPRESS_DB_USER: ${MARIADB_USER}
|
||||
WORDPRESS_DB_NAME: ${MARIADB_DB}
|
||||
volumes:
|
||||
- /data/appdata/wordpress:/var/www/html
|
||||
networks:
|
||||
proxynet:
|
||||
external: true
|
Loading…
Reference in New Issue
Block a user