2023-11-25 17:34:59 +01:00
|
|
|
version: '3.9'
|
2023-04-10 23:42:21 +02:00
|
|
|
services:
|
2024-05-05 01:02:15 +02:00
|
|
|
# Webserver
|
|
|
|
caddy:
|
|
|
|
image: caddy:latest
|
|
|
|
container_name: webserver
|
|
|
|
profiles:
|
|
|
|
- webserver
|
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html:rw
|
|
|
|
- caddy_data:/data:rw
|
|
|
|
- caddy_config:/config:rw
|
|
|
|
- ./caddy:/etc/caddy:ro
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
# cap_drop:
|
|
|
|
# - ALL
|
|
|
|
# cap_add:
|
|
|
|
# - CHOWN
|
|
|
|
# - FOWNER
|
|
|
|
# - DAC_OVERRIDE
|
|
|
|
# - SETGID
|
|
|
|
# - SETUID
|
|
|
|
# - NET_BIND_SERVICE
|
|
|
|
|
|
|
|
# Database wordpress
|
2023-04-10 23:42:21 +02:00
|
|
|
database:
|
|
|
|
image: mariadb:latest
|
|
|
|
container_name: database
|
|
|
|
profiles:
|
|
|
|
- database
|
2024-05-04 23:52:44 +02:00
|
|
|
- wordpress
|
2023-11-26 22:46:58 +01:00
|
|
|
depends_on:
|
|
|
|
- caddy
|
2023-11-25 17:34:59 +01:00
|
|
|
restart: on-failure
|
2023-04-10 23:42:21 +02:00
|
|
|
volumes:
|
|
|
|
- database:/var/lib/mysql:rw
|
|
|
|
env_file:
|
2024-05-04 17:07:38 +02:00
|
|
|
- env/wordpress_db.env
|
2023-04-10 23:42:21 +02:00
|
|
|
command: '--default-authentication-plugin=mysql_native_password'
|
|
|
|
networks:
|
2024-05-01 13:17:53 +02:00
|
|
|
- infra-network
|
2023-11-25 17:34:59 +01:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
2023-04-10 23:42:21 +02:00
|
|
|
# Wordpress
|
|
|
|
wordpress:
|
2023-11-25 10:03:44 +01:00
|
|
|
image: wordpress:fpm
|
2023-04-10 23:42:21 +02:00
|
|
|
container_name: wordpress
|
|
|
|
profiles:
|
|
|
|
- wordpress
|
2023-11-25 17:34:59 +01:00
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- database
|
2023-11-26 22:46:58 +01:00
|
|
|
- caddy
|
2023-04-10 23:42:21 +02:00
|
|
|
env_file:
|
|
|
|
- env/wordpress.env
|
|
|
|
volumes:
|
2023-12-13 23:29:39 +01:00
|
|
|
- ./config/wordpress/php.ini:/usr/local/etc/php/conf.d/custom.ini:ro
|
2023-04-10 23:42:21 +02:00
|
|
|
- wordpress:/var/www/html:rw
|
|
|
|
networks:
|
2024-05-01 13:17:53 +02:00
|
|
|
- infra-network
|
2023-11-25 17:34:59 +01:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
|
|
|
# Adminer
|
2023-11-25 10:03:44 +01:00
|
|
|
adminer:
|
|
|
|
image: adminer:latest
|
|
|
|
container_name: adminer
|
|
|
|
profiles:
|
|
|
|
- adminer
|
2023-11-25 17:34:59 +01:00
|
|
|
restart: on-failure
|
2023-11-25 10:03:44 +01:00
|
|
|
env_file:
|
|
|
|
- env/adminer.env
|
|
|
|
depends_on:
|
|
|
|
- database
|
2023-11-26 22:46:58 +01:00
|
|
|
- caddy
|
2023-11-25 10:03:44 +01:00
|
|
|
networks:
|
2024-05-01 13:17:53 +02:00
|
|
|
- infra-network
|
2023-11-25 17:34:59 +01:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-05 01:02:15 +02:00
|
|
|
|
|
|
|
# Gitea
|
2024-05-04 17:07:38 +02:00
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:latest-rootless
|
|
|
|
container_name: gitea
|
|
|
|
profiles:
|
|
|
|
- gitea
|
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- caddy
|
|
|
|
env_file:
|
|
|
|
- env/gitea.env
|
|
|
|
volumes:
|
|
|
|
- gitea_data:/var/lib/gitea
|
|
|
|
- gitea_config:/etc/gitea
|
|
|
|
# - /etc/timezone:/etc/timezone:ro
|
|
|
|
# - /etc/localtime:/etc/localtime:ro
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-05 01:02:15 +02:00
|
|
|
|
|
|
|
# Database gitea
|
2024-05-04 17:07:38 +02:00
|
|
|
database_gitea:
|
|
|
|
image: mariadb:latest
|
|
|
|
container_name: database_gitea
|
|
|
|
profiles:
|
|
|
|
- database
|
2024-05-04 23:52:44 +02:00
|
|
|
- gitea
|
2024-05-04 17:07:38 +02:00
|
|
|
depends_on:
|
|
|
|
- gitea
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- gitea_db:/var/lib/mysql:rw
|
|
|
|
env_file:
|
|
|
|
- env/gitea_db.env
|
|
|
|
command: '--default-authentication-plugin=mysql_native_password'
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-05 01:02:15 +02:00
|
|
|
|
|
|
|
# Jellyfin
|
2024-05-04 23:36:13 +02:00
|
|
|
jellyfin:
|
|
|
|
image: jellyfin/jellyfin:latest
|
|
|
|
container_name: jellyfin
|
|
|
|
profiles:
|
|
|
|
- jellyfin
|
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- caddy
|
|
|
|
volumes:
|
|
|
|
- jellyfin_config:/config
|
|
|
|
- jellyfin_data:/movies:ro
|
|
|
|
- jellyfin_cache:/cache
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-01 13:17:53 +02:00
|
|
|
|
2024-05-05 01:02:15 +02:00
|
|
|
# qBittorrent
|
2024-05-01 13:17:53 +02:00
|
|
|
qbittorrent:
|
|
|
|
image: lscr.io/linuxserver/qbittorrent:latest
|
|
|
|
container_name: qbittorrent
|
|
|
|
profiles:
|
|
|
|
- qbittorrent
|
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- caddy
|
2024-05-04 17:07:38 +02:00
|
|
|
env_file:
|
|
|
|
- env/qbittorrent.env
|
2024-05-01 13:17:53 +02:00
|
|
|
volumes:
|
|
|
|
- qbittorrent_config:/config
|
|
|
|
- qbittorrent_data:/downloads
|
|
|
|
networks:
|
|
|
|
- infra-network
|
2024-05-04 17:07:38 +02:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-05 01:02:15 +02:00
|
|
|
|
|
|
|
# Uptime Kuma
|
2024-05-04 23:10:30 +02:00
|
|
|
uptime-kuma:
|
|
|
|
image: louislam/uptime-kuma:latest
|
|
|
|
container_name: uptime-kuma
|
|
|
|
profiles:
|
|
|
|
- uptime-kuma
|
|
|
|
volumes:
|
|
|
|
- uptimekuma_data:/app/data
|
2024-05-05 01:02:15 +02:00
|
|
|
restart: on-failure
|
2024-05-04 23:10:30 +02:00
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
2023-04-10 23:42:21 +02:00
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
name: database
|
|
|
|
wordpress:
|
|
|
|
name: wordpress
|
|
|
|
caddy_data:
|
|
|
|
name: caddy_data
|
|
|
|
caddy_config:
|
|
|
|
name: caddy_config
|
2024-05-01 13:17:53 +02:00
|
|
|
qbittorrent_config:
|
|
|
|
name: qbittorrent_config
|
|
|
|
qbittorrent_data:
|
|
|
|
name: qbittorrent_data
|
2023-11-26 22:46:58 +01:00
|
|
|
uptimekuma_data:
|
|
|
|
name: uptimekuma_data
|
2024-05-04 17:07:38 +02:00
|
|
|
gitea_data:
|
|
|
|
name: gitea_data
|
|
|
|
gitea_config:
|
|
|
|
name: gitea_config
|
|
|
|
gitea_db:
|
|
|
|
name: gitea_db
|
2024-05-04 23:36:13 +02:00
|
|
|
jellyfin_config:
|
|
|
|
name: jellyfin_config
|
|
|
|
jellyfin_data:
|
|
|
|
name: jellyfin_data
|
|
|
|
jellyfin_cache:
|
|
|
|
name: jellyfin_cache
|
2024-05-05 01:02:15 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
infra-network:
|
|
|
|
driver: bridge
|
|
|
|
name: infra-network
|