add ghost to stack for phlog
This commit is contained in:
parent
31c11437d0
commit
c8f22f83e2
@ -32,6 +32,10 @@ tasks.thesatelliteoflove.com {
|
||||
reverse_proxy authentik-server-1:9000
|
||||
}
|
||||
|
||||
phlog.thesatelliteoflove.com {
|
||||
reverse_proxy ghost-1-ghost-1:2368
|
||||
}
|
||||
|
||||
code.thesatelliteoflove.com {
|
||||
reverse_proxy authentik-server-1:9000
|
||||
}
|
||||
|
19
roles/docker/tasks/ghost-1.yml
Normal file
19
roles/docker/tasks/ghost-1.yml
Normal file
@ -0,0 +1,19 @@
|
||||
- name: make ghost-1 directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item}}"
|
||||
state: directory
|
||||
loop:
|
||||
- /opt/stacks/ghost-1
|
||||
|
||||
- name: Template out the compose file
|
||||
ansible.builtin.template:
|
||||
src: ghost-1-compose.yml.j2
|
||||
dest: /opt/stacks/ghost-1/compose.yml
|
||||
owner: root
|
||||
mode: 644
|
||||
|
||||
- name: deploy ghost-1 stack
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/stacks/ghost-1
|
||||
files:
|
||||
- compose.yml
|
@ -136,4 +136,8 @@
|
||||
|
||||
- name: Install syncthing
|
||||
import_tasks: syncthing.yml
|
||||
tags: syncthing
|
||||
tags: syncthing
|
||||
|
||||
- name: Install ghost-1
|
||||
import_tasks: ghost-1.yml
|
||||
tags: ghost-1
|
||||
|
22
roles/docker/templates/ghost-1-compose.yml.j2
Normal file
22
roles/docker/templates/ghost-1-compose.yml.j2
Normal file
@ -0,0 +1,22 @@
|
||||
services:
|
||||
|
||||
ghost:
|
||||
image: ghost:5-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- database__client=sqlite3
|
||||
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
|
||||
- database__useNullAsDefault=true
|
||||
- url=https://phlog.thesatelliteoflove.com
|
||||
volumes:
|
||||
- ghost:/var/lib/ghost/content
|
||||
extra_hosts:
|
||||
- 'phlog.thesatelliteoflove.com:172.20.0.5'
|
||||
|
||||
volumes:
|
||||
ghost:
|
||||
driver: local
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
name: lava
|
Loading…
x
Reference in New Issue
Block a user