diff --git a/fighter/config/jafner-dev/.env b/fighter/config/jafner-dev/.env new file mode 100644 index 0000000..0abe372 --- /dev/null +++ b/fighter/config/jafner-dev/.env @@ -0,0 +1 @@ +DOCKER_DATA=/home/admin/data/jafner.dev \ No newline at end of file diff --git a/fighter/config/jafner-dev/db.env b/fighter/config/jafner-dev/db.env new file mode 100644 index 0000000..3f6a3b0 --- /dev/null +++ b/fighter/config/jafner-dev/db.env @@ -0,0 +1,6 @@ +MYSQL_DATABASE=wordpressdb +MYSQL_USER=wordpress +MYSQL_RANDOM_ROOT_PASSWORD='1' + +# Secrets configured in `db_secrets.env`: +# MYSQL_PASSWORD \ No newline at end of file diff --git a/fighter/config/jafner-dev/docker-compose.yml b/fighter/config/jafner-dev/docker-compose.yml new file mode 100644 index 0000000..e39bfaa --- /dev/null +++ b/fighter/config/jafner-dev/docker-compose.yml @@ -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: diff --git a/fighter/config/jafner-dev/jafner-dev.env b/fighter/config/jafner-dev/jafner-dev.env new file mode 100644 index 0000000..02b175a --- /dev/null +++ b/fighter/config/jafner-dev/jafner-dev.env @@ -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 \ No newline at end of file