mirror of
https://github.com/sc-idevops/docker-templates.git
synced 2025-09-22 12:26:46 -04:00
initial commit
This commit is contained in:
commit
7e21af3d86
4 changed files with 47 additions and 0 deletions
4
wordpress/.env
Normal file
4
wordpress/.env
Normal file
|
@ -0,0 +1,4 @@
|
|||
WPNAME=
|
||||
PORT=8887
|
||||
#openssl rand -hex 32
|
||||
WORDPRESS_DB_PASSWORD=
|
2
wordpress/db/conf/logbin.cnf
Normal file
2
wordpress/db/conf/logbin.cnf
Normal file
|
@ -0,0 +1,2 @@
|
|||
[mysqld]
|
||||
skip-log-bin = true
|
40
wordpress/docker-compose.yml
Normal file
40
wordpress/docker-compose.yml
Normal file
|
@ -0,0 +1,40 @@
|
|||
services:
|
||||
wordpress:
|
||||
image: wordpress
|
||||
container_name: ${WPNAME}-wordpress
|
||||
restart: always
|
||||
ports:
|
||||
- ${PORT}:80
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: ${WPNAME}-wpdb
|
||||
WORDPRESS_DB_USER: wpress
|
||||
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
||||
WORDPRESS_DB_NAME: wpress
|
||||
volumes:
|
||||
- ./wordpress:/var/www/html
|
||||
networks:
|
||||
- caddy
|
||||
labels:
|
||||
caddy: ${WPNAME}.theheart.land
|
||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||
|
||||
wpdb:
|
||||
image: mysql:8.0
|
||||
restart: always
|
||||
container_name: ${WPNAME}-wpdb
|
||||
environment:
|
||||
MYSQL_DATABASE: wpress
|
||||
MYSQL_USER: wpress
|
||||
MYSQL_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${WORDPRESS_DB_PASSWORD}
|
||||
volumes:
|
||||
- ./db:/var/lib/mysql
|
||||
- ./db/conf/:/etc/mysql/conf.d/
|
||||
networks:
|
||||
caddy:
|
||||
aliases:
|
||||
- ${WPNAME}-wpdb
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue