Update ghost/docker-compose.yml
Modify for the ELITE cluster
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
services:
|
||||
ghost:
|
||||
image: ghost:latest
|
||||
container_name: ghost
|
||||
deploy:
|
||||
# placement:
|
||||
# constraints: [node.role == worker]
|
||||
replicas: 1
|
||||
restart: always
|
||||
ports:
|
||||
@@ -31,27 +28,18 @@ services:
|
||||
- mysql
|
||||
volumes:
|
||||
- /mnt/cephfs/docker/ghost/data:/var/lib/ghost/content
|
||||
# networks:
|
||||
# - caddy_net
|
||||
|
||||
mysql:
|
||||
image: mysql:8.4.6 # latest or last version of version 8; Ghost doesn't recognise version 9
|
||||
container_name: mysql
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.database == here
|
||||
restart: always
|
||||
volumes:
|
||||
- /mnt/cephfs/docker/ghost/mysql:/var/lib/mysql:rw
|
||||
- /mnt/cephfs/docker/mysql/ghost:/var/lib/mysql:rw
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: Vegetable
|
||||
MYSQL_DATABASE: ghostdb
|
||||
MYSQL_USER: ghost
|
||||
MYSQL_PASSWORD: Carrot
|
||||
# networks:
|
||||
# - caddy_net
|
||||
|
||||
#networks:
|
||||
# caddy_net:
|
||||
# external: true
|
||||
|
||||
Reference in New Issue
Block a user