From 7231d29b91ba966f96cdea54fda62fc88b78e3eb Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Mon, 6 May 2024 00:36:56 +0200 Subject: [PATCH] Split adminer and wordpress Signed-off-by: Bensuperpc --- docker-compose.adminer.yml | 19 +++++++++++++++++++ docker-compose.backup.yml | 12 +++++++++++- docker-compose.wordpress.yml | 17 ----------------- 3 files changed, 30 insertions(+), 18 deletions(-) create mode 100644 docker-compose.adminer.yml diff --git a/docker-compose.adminer.yml b/docker-compose.adminer.yml new file mode 100644 index 0000000..cd77e0d --- /dev/null +++ b/docker-compose.adminer.yml @@ -0,0 +1,19 @@ +version: '3.9' + +services: + # Adminer + adminer: + image: adminer:latest + container_name: adminer + profiles: + - adminer + restart: on-failure + env_file: + - env/adminer.env + depends_on: + - wordpress_db + - caddy + networks: + - infra-network + security_opt: + - no-new-privileges:true diff --git a/docker-compose.backup.yml b/docker-compose.backup.yml index 064491c..0a1c570 100644 --- a/docker-compose.backup.yml +++ b/docker-compose.backup.yml @@ -12,9 +12,19 @@ services: - env/backup.env volumes: - /var/run/docker.sock:/var/run/docker.sock:ro + - backup:/archive - caddy_data:/backup/caddy_data:ro - caddy_config:/backup/caddy_config:ro - - backup:/archive +# - gitea_data:/backup/gitea_data:ro +# - gitea_config:/backup/gitea_config:ro +# - database:/backup/database:ro +# - wordpress:/backup/wordpress:ro +# - jellyfin_config:/backup/jellyfin_config:ro +# - jellyfin_data:/backup/jellyfin_data:ro +# - jellyfin_cache:/backup/jellyfin_cache:ro +# - qbittorrent_config:/backup/qbittorrent_config:ro +# - qbittorrent_data:/backup/qbittorrent_data:ro +# - uptimekuma_data:/backup/uptimekuma_data:ro networks: - infra-network security_opt: diff --git a/docker-compose.wordpress.yml b/docker-compose.wordpress.yml index 18f2051..faf0e39 100644 --- a/docker-compose.wordpress.yml +++ b/docker-compose.wordpress.yml @@ -41,23 +41,6 @@ services: security_opt: - no-new-privileges:true - # Adminer - adminer: - image: adminer:latest - container_name: adminer - profiles: - - adminer - restart: on-failure - env_file: - - env/adminer.env - depends_on: - - wordpress_db - - caddy - networks: - - infra-network - security_opt: - - no-new-privileges:true - volumes: database: name: database