mirror of
https://github.com/balzack/databag.git
synced 2025-04-22 17:45:18 +00:00
* Better dev docker containers, Simpler production docker file, caddy for ssl * Fix repeater docker image * Add depends on * Use recommended caddy volumes & change to using databag image * move to using examples folder for installation * lint * Tested example linux on bare metal * Add DATABAG_PORT env and fix caddy * Add dev_database for local sqlite testing * incorrect use -z * Add platform goarch goos optional envs * Add more caching for faster rebuilds
30 lines
606 B
YAML
30 lines
606 B
YAML
name: databag-example-ssl
|
|
|
|
services:
|
|
caddy:
|
|
image: caddy
|
|
restart: unless-stopped
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
# Edit the Caddyfile and replace "example.com" with your own domain
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
# Recommended by Caddy
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
depends_on:
|
|
- app
|
|
app:
|
|
image: balzack/databag:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- database:/var/lib/databag
|
|
environment:
|
|
- ADMIN=password
|
|
- DATABAG_PORT=443
|
|
volumes:
|
|
database:
|
|
caddy_data:
|
|
caddy_config:
|