2022-11-24 13:32:59 +01:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
2022-11-24 20:17:35 +01:00
|
|
|
webserver:
|
|
|
|
depends_on:
|
|
|
|
- wordpress
|
|
|
|
image: nginx:1.23
|
|
|
|
container_name: webserver
|
|
|
|
profiles:
|
|
|
|
- webserver
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
|
|
|
- ./nginx-conf:/etc/nginx/conf.d
|
|
|
|
- certbot-etc:/etc/letsencrypt:ro
|
|
|
|
networks:
|
|
|
|
- app-network
|
2022-11-26 10:21:10 +01:00
|
|
|
wp_db:
|
2022-11-24 13:32:59 +01:00
|
|
|
image: mariadb:10.10.2
|
2022-11-26 10:21:10 +01:00
|
|
|
container_name: wp_db
|
2022-11-24 13:32:59 +01:00
|
|
|
profiles:
|
|
|
|
- db
|
2022-11-26 10:21:10 +01:00
|
|
|
- wordpress
|
2022-11-24 13:32:59 +01:00
|
|
|
restart: unless-stopped
|
2022-11-24 20:17:35 +01:00
|
|
|
env_file:
|
2022-11-26 10:21:10 +01:00
|
|
|
- env/wp_database.env
|
2022-11-24 13:32:59 +01:00
|
|
|
volumes:
|
|
|
|
- dbdata:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
|
|
|
|
wordpress:
|
|
|
|
depends_on:
|
2022-11-26 10:21:10 +01:00
|
|
|
- wp_db
|
2022-11-24 13:32:59 +01:00
|
|
|
image: wordpress:6.1.1-php8.1-fpm
|
|
|
|
container_name: wordpress
|
|
|
|
profiles:
|
|
|
|
- wordpress
|
|
|
|
restart: unless-stopped
|
2022-11-24 20:17:35 +01:00
|
|
|
env_file:
|
2022-11-26 10:21:10 +01:00
|
|
|
- env/wordpress.env
|
|
|
|
# environment:
|
|
|
|
# - WORDPRESS_DB_HOST=wp_db:3306
|
2022-11-24 13:32:59 +01:00
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
|
|
|
|
flask_website:
|
|
|
|
build:
|
|
|
|
context: ./flask
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: flask_website
|
|
|
|
profiles:
|
2022-11-24 20:17:35 +01:00
|
|
|
- flask_website
|
2022-11-24 13:32:59 +01:00
|
|
|
volumes:
|
|
|
|
- ./flask:/app:rw
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- app-network
|
2022-11-24 20:17:35 +01:00
|
|
|
qbittorrent:
|
|
|
|
image: lscr.io/linuxserver/qbittorrent:latest
|
|
|
|
container_name: qbittorrent
|
2022-11-24 13:32:59 +01:00
|
|
|
profiles:
|
2022-11-24 20:17:35 +01:00
|
|
|
- qbittorrent
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Europe/London
|
|
|
|
- WEBUI_PORT=8080
|
2022-11-26 10:21:10 +01:00
|
|
|
volumes:
|
2022-11-24 20:17:35 +01:00
|
|
|
# - /path/to/appdata/config:/config
|
2022-11-26 10:21:10 +01:00
|
|
|
- downloads:/downloads
|
2022-11-24 20:17:35 +01:00
|
|
|
#ports:
|
|
|
|
# - 8080:8080
|
|
|
|
# - 6881:6881
|
|
|
|
# - 6881:6881/udp
|
2022-11-24 13:32:59 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
certbot:
|
|
|
|
depends_on:
|
|
|
|
- webserver
|
|
|
|
image: certbot/certbot:v1.32.0
|
|
|
|
container_name: certbot
|
|
|
|
profiles:
|
|
|
|
- certbot
|
|
|
|
volumes:
|
|
|
|
- certbot-etc:/etc/letsencrypt
|
|
|
|
- wordpress:/var/www/html
|
|
|
|
#command: certonly --webroot --webroot-path=/var/www/html --email bensuperpc@bensuperpc.fr --agree-tos --rsa-key-size 4096 --no-eff-email --verbose --noninteractive --staging --domain www.bensuperpc.org --domain bensuperpc.org
|
|
|
|
#command: certonly --webroot --webroot-path=/var/www/html --email bensuperpc@bensuperpc.fr --agree-tos --rsa-key-size 4096 --no-eff-email --verbose --force-renewal --domain www.bensuperpc.org --domain bensuperpc.org
|
|
|
|
command: certonly --webroot --webroot-path=/var/www/html --email bensuperpc@bensuperpc.fr --agree-tos --rsa-key-size 4096 --no-eff-email --verbose --noninteractive --keep-until-expiring --domain www.bensuperpc.org --domain bensuperpc.org
|
|
|
|
phpmyadmin:
|
|
|
|
image: phpmyadmin:5.2.0
|
|
|
|
container_name: phpmyadmin
|
|
|
|
profiles:
|
|
|
|
- phpmyadmin
|
|
|
|
restart: unless-stopped
|
2022-11-24 20:17:35 +01:00
|
|
|
env_file:
|
2022-11-26 10:21:10 +01:00
|
|
|
- env/phpmyadmin.env
|
2022-11-24 13:32:59 +01:00
|
|
|
depends_on:
|
2022-11-26 10:21:10 +01:00
|
|
|
- wp_db
|
2022-11-24 13:32:59 +01:00
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
volumes:
|
2022-11-24 20:17:35 +01:00
|
|
|
certbot-etc:
|
|
|
|
name: certbot-etc
|
|
|
|
wordpress:
|
|
|
|
name: wordpress
|
|
|
|
dbdata:
|
|
|
|
name: dbdata
|
2022-11-26 10:21:10 +01:00
|
|
|
|
|
|
|
downloads:
|
|
|
|
name: downloads
|
2022-11-24 13:32:59 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
app-network:
|
2022-11-24 20:17:35 +01:00
|
|
|
driver: bridge
|
|
|
|
name: app-network
|