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:
|
2022-11-26 14:48:11 +01:00
|
|
|
- wp_db
|
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:
|
2022-11-26 14:48:11 +01:00
|
|
|
context: ./bensuperpc_website
|
2022-11-24 13:32:59 +01:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: flask_website
|
|
|
|
profiles:
|
2022-11-24 20:17:35 +01:00
|
|
|
- flask_website
|
2022-11-26 14:48:11 +01:00
|
|
|
depends_on:
|
|
|
|
- flask_db
|
2022-11-24 13:32:59 +01:00
|
|
|
volumes:
|
2022-11-26 14:48:11 +01:00
|
|
|
- ./bensuperpc_website:/app:rw
|
2022-11-26 16:30:11 +01:00
|
|
|
env_file:
|
|
|
|
- env/flask_website.env
|
2022-11-26 14:48:11 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 5000:5000
|
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
flask_db:
|
|
|
|
image: postgres:latest
|
|
|
|
container_name: flask_db
|
|
|
|
profiles:
|
|
|
|
- flask_db
|
2022-11-24 13:32:59 +01:00
|
|
|
restart: unless-stopped
|
2022-11-26 16:30:11 +01:00
|
|
|
env_file:
|
|
|
|
- env/flask_database.env
|
2022-11-26 14:48:11 +01:00
|
|
|
# ports:
|
|
|
|
# - 5432:5432
|
|
|
|
volumes:
|
|
|
|
- postgres-data:/var/lib/postgresql/data
|
2022-11-24 13:32:59 +01:00
|
|
|
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
|
2022-11-26 16:30:11 +01:00
|
|
|
pgadmin:
|
|
|
|
container_name: pgadmin_container
|
|
|
|
image: dpage/pgadmin4:6.16
|
|
|
|
profiles:
|
|
|
|
- pgadmin
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- env/pgadmin.env
|
|
|
|
depends_on:
|
|
|
|
- flask_db
|
|
|
|
networks:
|
|
|
|
- app-network
|
2022-11-24 13:32:59 +01:00
|
|
|
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
|
|
|
|
2022-11-26 14:48:11 +01:00
|
|
|
postgres-data:
|
|
|
|
name: postgres-data
|
|
|
|
|
2022-11-24 13:32:59 +01:00
|
|
|
networks:
|
|
|
|
app-network:
|
2022-11-24 20:17:35 +01:00
|
|
|
driver: bridge
|
|
|
|
name: app-network
|