ghost/docker-compose.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

2020-05-10 17:47:39 +00:00
version: "3.7"
services:
ghost:
# ghost blog
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
2020-10-06 19:08:40 +00:00
image: ${LOCAL_DOCKER_REGISTRY}my-ghost
2020-05-10 17:47:39 +00:00
volumes:
- ghost-content-images:/var/lib/ghost/content/images
- ghost-content-settings:/var/lib/ghost/content/settings
- ghost-content-adapters:/var/lib/ghost/content/adapters
- ghost-content-data:/var/lib/ghost/content/data
- ghost-content-logs:/var/lib/ghost/content/logs
environment:
2020-08-28 20:53:01 +00:00
- DOMAIN=$DOMAIN
2020-10-22 14:35:59 +00:00
- SCHEME=$SCHEME
2020-08-28 20:53:01 +00:00
- MAIL-SERVICE=$MAIL-SERVICE
- MAIL-USER=$MAIL-USER
- MAIL-PASSWORD=$MAIL-PASSWORD
2020-05-10 17:47:39 +00:00
- COMMENTO_ORIGIN=$COMMENTO_ORIGIN
- database__client=mysql
- database__connection__host=ghost-mysql
- database__connection__user=root
2020-08-28 20:53:01 +00:00
- database__connection__password=$MYSQL_ROOT_PASSWORD
2020-05-10 17:47:39 +00:00
- database__connection__database=ghost
- database__pool__min=0 # https://github.com/knex/knex/issues/975
networks:
- appnet
- externalnet
ghost-mysql:
2020-09-25 08:28:00 +00:00
image: ${LOCAL_DOCKER_REGISTRY}mysql:5.7
2020-05-10 17:47:39 +00:00
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack-data == yes]
replicas: 1
restart_policy:
condition: any
volumes:
- ghost-data:/var/lib/mysql
environment:
2020-08-28 20:53:01 +00:00
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
2020-05-10 17:47:39 +00:00
networks:
- appnet
volumes:
ghost-content:
ghost-data:
ghost-content-adapters:
ghost-content-settings:
ghost-content-images:
ghost-content-data:
ghost-content-logs:
networks:
appnet:
driver: overlay
#external: true
externalnet:
driver: overlay
external: true