diff --git a/docker-compose.yml b/docker-compose.yml index 4acdda7..0c3d221 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,14 +18,15 @@ services: - certbot-etc:/etc/letsencrypt:ro networks: - app-network - db: + wp_db: image: mariadb:10.10.2 - container_name: db + container_name: wp_db profiles: - db + - wordpress restart: unless-stopped env_file: - - .env + - env/wp_database.env volumes: - dbdata:/var/lib/mysql networks: @@ -33,19 +34,16 @@ services: wordpress: depends_on: - - db + - wp_db image: wordpress:6.1.1-php8.1-fpm container_name: wordpress profiles: - wordpress restart: unless-stopped env_file: - - .env - environment: - - WORDPRESS_DB_HOST=db:3306 - - WORDPRESS_DB_USER=$MARIADB_USER - - WORDPRESS_DB_PASSWORD=$MARIADB_PASSWORD - - WORDPRESS_DB_NAME=$MARIADB_DATABASE + - env/wordpress.env +# environment: +# - WORDPRESS_DB_HOST=wp_db:3306 volumes: - wordpress:/var/www/html networks: @@ -73,9 +71,9 @@ services: - PGID=1000 - TZ=Europe/London - WEBUI_PORT=8080 - #volumes: + volumes: # - /path/to/appdata/config:/config - # - /path/to/downloads:/downloads + - downloads:/downloads #ports: # - 8080:8080 # - 6881:6881 @@ -103,14 +101,9 @@ services: - phpmyadmin restart: unless-stopped env_file: - - .env - environment: - - MYSQL_ROOT_PASSWORD=$MARIADB_ROOT_PASSWORD - - MYSQL_USER=$MARIADB_USER - - MYSQL_PASSWORD=$MARIADB_PASSWORD - - PMA_HOST=db + - env/phpmyadmin.env depends_on: - - db + - wp_db networks: - app-network volumes: @@ -120,6 +113,9 @@ volumes: name: wordpress dbdata: name: dbdata + + downloads: + name: downloads networks: app-network: diff --git a/env/phpmyadmin.env b/env/phpmyadmin.env new file mode 100644 index 0000000..28c1837 --- /dev/null +++ b/env/phpmyadmin.env @@ -0,0 +1,4 @@ +MYSQL_ROOT_PASSWORD=g1qQWxTXyFXIKpAfbE0h5bxn&prr4zfd +MYSQL_USER=bensuperpc +MYSQL_PASSWORD=4Xnc7FB7902%*w9PW4y9&anQ5&hQdTzt +PMA_HOST=db diff --git a/env/wordpress.env b/env/wordpress.env new file mode 100644 index 0000000..13d584a --- /dev/null +++ b/env/wordpress.env @@ -0,0 +1,4 @@ +WORDPRESS_DB_USER=bensuperpc +WORDPRESS_DB_PASSWORD=4Xnc7FB7902%*w9PW4y9&anQ5&hQdTzt +WORDPRESS_DB_NAME=wordpress +WORDPRESS_DB_HOST=wp_db:3306 diff --git a/env/wp_database.env b/env/wp_database.env new file mode 100644 index 0000000..5609865 --- /dev/null +++ b/env/wp_database.env @@ -0,0 +1,4 @@ +MARIADB_ROOT_PASSWORD=g1qQWxTXyFXIKpAfbE0h5bxn&prr4zfd +MARIADB_USER=bensuperpc +MARIADB_PASSWORD=4Xnc7FB7902%*w9PW4y9&anQ5&hQdTzt +MARIADB_DATABASE=wordpress diff --git a/nginx-conf/minecraft.conf b/nginx-conf/minecraft.conf new file mode 100644 index 0000000..77b40da --- /dev/null +++ b/nginx-conf/minecraft.conf @@ -0,0 +1,8 @@ +#stream { +# server { +# listen 25565; +# server_name minecraft.bensuperpc.org www.minecraft.bensuperpc.org; +# +# proxy_pass minecraft:25565; +# } +#} diff --git a/nginx-conf/qbittorrent.conf b/nginx-conf/qbittorrent.conf index e0456ce..3419cd9 100644 --- a/nginx-conf/qbittorrent.conf +++ b/nginx-conf/qbittorrent.conf @@ -19,7 +19,6 @@ server { proxy_pass http://qbittorrent_server; proxy_redirect off; proxy_set_header X-Forwarded-Host $http_host; - #proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-For $remote_addr; }