From 907e471e1bb1e747278740b3419f430593d5d22f Mon Sep 17 00:00:00 2001 From: groot Date: Sat, 4 Jan 2025 20:54:23 +0000 Subject: [PATCH] =?UTF-8?q?swarm=5Ffull/compose.yml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swarm_full/compose.yml | 93 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 swarm_full/compose.yml diff --git a/swarm_full/compose.yml b/swarm_full/compose.yml new file mode 100644 index 0000000..fb410f9 --- /dev/null +++ b/swarm_full/compose.yml @@ -0,0 +1,93 @@ +version: '3.9' +networks: + web_network_1: + driver: overlay + ipam: + config: + - subnet: 172.17.0.0/24 +services: + web: + image: git.send.nrw/sendnrw/nginx:latest + volumes: + - /docker/mnt/stack0/web1/nginx/nginx.conf:/etc/nginx/nginx.conf + - /docker/mnt/stack0/web1/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf + - /docker/mnt/stack0/web1/src:/usr/share/nginx/html + deploy: + replicas: 3 + update_config: + parallelism: 1 + delay: 10s + restart_policy: + condition: on-failure + labels: + - "traefik.enable=true" + - "traefik.http.routers.web1.rule=Host(`web1.localdomain`)" + - "traefik.http.services.web1.loadbalancer.server.port=80" + - "traefik.http.routers.web1.entrypoints=websecure" + - "traefik.http.routers.web1.tls=true" + placement: + constraints: + - node.role != manager + networks: + - web_network_1 + ports: + - "8080:80" + php83: + image: git.send.nrw/sendnrw/php83:latest + volumes: + - /docker/mnt/stack0/web1/php83/php-fpm.conf:/etc/php83/php-fpm.conf + - /docker/mnt/stack0/web1/php83/php.ini:/etc/php83/php.ini + - /docker/mnt/stack0/web1/php83/php-fpm.d/www.conf:/etc/php83/php-fpm.d/www.conf + - /docker/mnt/stack0/web1/src:/usr/share/nginx/html + deploy: + replicas: 1 + update_config: + parallelism: 1 + delay: 10s + restart_policy: + condition: on-failure + placement: + constraints: + - node.role != manager + networks: + web_network_1: + ipv4_address: 172.17.0.83 + php84: + image: git.send.nrw/sendnrw/php84:latest + volumes: + - /docker/mnt/stack0/web1/php84/php-fpm.conf:/etc/php84/php-fpm.conf + - /docker/mnt/stack0/web1/php84/php.ini:/etc/php84/php.ini + - /docker/mnt/stack0/web1/php84/php-fpm.d/www.conf:/etc/php84/php-fpm.d/www.conf + - /docker/mnt/stack0/web1/src:/usr/share/nginx/html + deploy: + replicas: 1 + update_config: + parallelism: 1 + delay: 10s + restart_policy: + condition: on-failure + placement: + constraints: + - node.role != manager + networks: + web_network_1: + ipv4_address: 172.17.0.84 + redis: + image: git.send.nrw/sendnrw/redis:latest + volumes: + - /docker/mnt/stack0/web1/redis/redis.conf:/config/redis.conf + deploy: + replicas: 1 + update_config: + parallelism: 1 + delay: 10s + restart_policy: + condition: on-failure + placement: + constraints: + - node.role != manager + networks: + web_network_1: + ipv4_address: 172.17.0.100 + ports: + - "6379:6379"