Add basic shaarli deployment

This commit is contained in:
Marty Oehme 2021-11-21 21:20:26 +01:00
parent f2e709590b
commit b75e5e58c6
Signed by: Marty
GPG key ID: B7538B8F50A1C800
11 changed files with 214 additions and 0 deletions

View file

@ -0,0 +1,25 @@
version: '3.4'
services:
app:
image: "{{ stack_image }}:{{ shaarli_version }}"
healthcheck:
test: ["CMD", "wget", "--quiet", "--spider", "--tries=1", "http://localhost:80"]
interval: 1m
timeout: 10s
retries: 3
start_period: 1m
networks:
- "{{ docker_swarm_public_network_name }}"
volumes:
- data:/var/www/shaarli/data
- cache:/var/www/shaarli/cache
volumes:
data:
cache:
networks:
"{{ docker_swarm_public_network_name }}":
external: true