2021-12-07 18:32:48 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
web:
|
2022-01-08 16:21:53 +00:00
|
|
|
# build: . # Only if you want to Build the image on your own Server!
|
2021-12-07 18:32:48 +00:00
|
|
|
image: registry.ucode.space/phil/goshorly:latest
|
2021-12-07 19:23:27 +00:00
|
|
|
environment:
|
2022-01-25 16:25:23 +00:00
|
|
|
- HOST="127.0.0.1" # Domain or IP-Adress
|
|
|
|
- PORT="3000" # The Port you want to use
|
|
|
|
- HTTPS="true" # If you want to use HTTPS
|
|
|
|
- PROXY="true" # If you want to use a Reverse Proxy
|
|
|
|
- REDIS_URI="redis" # The Redis-URI (name of redis container OOTB)
|
|
|
|
- ENABLE_STATS="true" # Enables the /stats public frontend
|
2021-12-07 18:32:48 +00:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
command: redis-server --appendonly yes
|
|
|
|
volumes:
|
|
|
|
- db:/data
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
caddy:
|
|
|
|
image: caddy:2
|
|
|
|
restart: always
|
2021-12-07 19:23:27 +00:00
|
|
|
command: caddy reverse-proxy --from https://example.org:443 --to http://web:3000
|
2021-12-07 18:32:48 +00:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- caddy:/data
|
|
|
|
depends_on:
|
|
|
|
- web
|
|
|
|
- redis
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
caddy:
|
|
|
|
db:
|