bunkerweb/examples/ghost/swarm.yml
2022-10-19 17:37:13 +02:00

29 lines
659 B
YAML

version: "3.3"
services:
myghost:
image: ghost:alpine
volumes:
- ghost_data:/var/lib/ghost/content
networks:
- bw-services
environment:
- url=https://www.example.com # replace with your domain
- NODE_ENV=development
deploy:
placement:
constraints:
- "node.role==worker"
labels:
- bunkerweb.SERVER_NAME=www.example.com # replace with your domain
- bunkerweb.USE_REVERSE_PROXY=yes
- bunkerweb.REVERSE_PROXY_URL=/
- bunkerweb.REVERSE_PROXY_HOST=http://myghost:2368
networks:
bw-services:
external:
name: bw-services
volumes:
ghost_data: