Refactor swarm/ghost.yml to update network names and domain for Ghost stack

This commit is contained in:
2024-06-03 09:08:40 +08:00
parent 0b9dfc3b3c
commit 743d5a898c
+4 -4
View File
@@ -2,7 +2,7 @@ volumes:
ghost_content: {} ghost_content: {}
ghost_mysql: {} ghost_mysql: {}
networks: networks:
net: ghost:
driver: overlay driver: overlay
attachable: true attachable: true
traefik-public: traefik-public:
@@ -22,7 +22,7 @@ services:
expose: expose:
- 3306 - 3306
networks: networks:
- net - ghost
ghost-server: ghost-server:
image: ghost image: ghost
@@ -40,13 +40,13 @@ services:
database__connection__user: root database__connection__user: root
database__connection__password: ${POSTGRES_PASSWORD} database__connection__password: ${POSTGRES_PASSWORD}
database__connection__database: ghost database__connection__database: ghost
DOMAIN: ${DOMAIN} DOMAIN: https://ghost.${DOMAIN}
volumes: volumes:
- ghost_content:/var/lib/ghost/content - ghost_content:/var/lib/ghost/content
expose: expose:
- 2368 - 2368
networks: networks:
- net - ghost
- traefik-public - traefik-public
deploy: deploy:
labels: labels: