diff --git a/ghost/docker-compose.yml b/ghost/docker-compose.yml index 83f9bd3..d542e16 100644 --- a/ghost/docker-compose.yml +++ b/ghost/docker-compose.yml @@ -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