relaunch
Some checks failed
Deploy to Swarm / deploy (push) Failing after 2s

This commit is contained in:
2025-10-25 12:44:05 -04:00
parent 3be86d1060
commit f91d4852ba
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
services:
postgres:
image: postgres:17-alpine
secrets:
- postgres-master
networks:
- homelab
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-master
- PGDATA=/var/lib/postgresql/data
volumes:
- /mnt/swarm-data/postgres:/var/lib/postgresql/data
ports:
- 5432:5432
deploy:
replicas: 1
placement:
constraints:
- node.hostname == p0
networks:
homelab:
external: true
secrets:
postgres-master:
external: true

View File

@@ -0,0 +1,19 @@
services:
tracker-nginx:
image: nginx:alpine
ports:
- 8180:80
networks:
- homelab
volumes:
- /mnt/swarm-data/webservers/production/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /mnt/swarm-data/webservers/production/nginx/.conf/default.conf:/etc/nginx/conf.d/default.conf:ro
- /mnt/swarm-data/webfiles/production/taylors-development:/usr/share/nginx/html:ro
deploy:
replicas: 3
placement:
constraints:
- node.role == worker
networks:
homelab:
external: true