Init jafner-dev wordpress portfolio instance
Some checks failed
Deploy to Fighter / Deploy (push) Failing after 1s
Deploy to Fighter / Notify (push) Successful in 1s

This commit is contained in:
Joey Hafner 2024-05-28 12:34:19 -07:00
parent 437e36b291
commit 9dcb3186da
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1 @@
DOCKER_DATA=/home/admin/data/jafner.dev

View File

@ -0,0 +1,6 @@
MYSQL_DATABASE=wordpressdb
MYSQL_USER=wordpress
MYSQL_RANDOM_ROOT_PASSWORD='1'
# Secrets configured in `db_secrets.env`:
# MYSQL_PASSWORD

View File

@ -0,0 +1,43 @@
name: "jafner-dev"
version: '3.7'
services:
jafner-dev:
image: wordpress
container_name: jafner-dev
env_file:
- path: ./jafner-dev.env
required: true
- path: ./jafner-dev_secrets.env
required: false
restart: "no"
volumes:
- ${DOCKER_DATA}/html:/var/www/html
- ./upload.ini:/usr/local/etc/php/conf.d/uploads.ini
networks:
- web
- jafner-dev
depends_on:
- db
labels:
- traefik.http.routers.jafner-dev.rule=Host(`jafner.dev`)
- traefik.http.routers.jafner-dev.tls.certresolver=lets-encrypt
db:
image: mysql:5.7
container_name: jafner-dev_db
restart: "no"
networks:
- jafner-dev
env_file:
- path: ./db.env
required: true
- path: ./db_secrets.env
required: false
volumes:
- ${DOCKER_DATA}/db:/var/lib/mysql
labels:
- traefik.enable=false
networks:
web:
external: true
jafner-dev:

View File

@ -0,0 +1,7 @@
WORDPRESS_DB_HOST=db
WORDPRESS_DB_USER=wordpress
WORDPRESS_DB_PASSWORD=wordpress
WORDPRESS_DB_NAME=wordpressdb
# Secrets configured in `jafner-dev_secrets.env`:
# WORDPRESS_DB_PASSWORD