1
0
Fork 0

Preserve db on restart

This commit is contained in:
🎷🐢 S. P. O. Clayton 2023-08-17 15:58:57 -04:00
parent 9792b172eb
commit 18e5b3d998
Signed by: sean
SSH Key Fingerprint: SHA256:zkuPrRvkEDiQQv1Y5yScWa6I4zhj+eiv7XnP8pxIxVU
1 changed files with 4 additions and 1 deletions

View File

@ -19,13 +19,16 @@
networks:
- name: "{{ stack_internal_network }}"
state: "{{ container_state }}"
mounts:
- target: /var/lib/mysql
source: "{{ stack_prefix_name }}ghost_db_data"
- name: Run Ghost
docker_container:
name: "{{ stack_prefix_name }}ghost"
recreate: true
restart_policy: unless-stopped
image: docker.io/library/ghost:5.59-alpine
image: docker.io/library/ghost:5.59.1-alpine
env:
database__client: mysql
database__connection__host: "{{ stack_prefix_name }}ghost-db"