Init jafner-dev wordpress portfolio instance
This commit is contained in:
parent
437e36b291
commit
9dcb3186da
1
fighter/config/jafner-dev/.env
Normal file
1
fighter/config/jafner-dev/.env
Normal file
@ -0,0 +1 @@
|
||||
DOCKER_DATA=/home/admin/data/jafner.dev
|
6
fighter/config/jafner-dev/db.env
Normal file
6
fighter/config/jafner-dev/db.env
Normal file
@ -0,0 +1,6 @@
|
||||
MYSQL_DATABASE=wordpressdb
|
||||
MYSQL_USER=wordpress
|
||||
MYSQL_RANDOM_ROOT_PASSWORD='1'
|
||||
|
||||
# Secrets configured in `db_secrets.env`:
|
||||
# MYSQL_PASSWORD
|
43
fighter/config/jafner-dev/docker-compose.yml
Normal file
43
fighter/config/jafner-dev/docker-compose.yml
Normal 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:
|
7
fighter/config/jafner-dev/jafner-dev.env
Normal file
7
fighter/config/jafner-dev/jafner-dev.env
Normal 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
|
Loading…
Reference in New Issue
Block a user