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