Piped-Docker/template/docker-compose.caddy.yml

72 lines
2.2 KiB
YAML
Raw Normal View History

2022-06-02 03:38:55 +00:00
version: "3"
services:
pipedfrontend:
image: 1337kavin/piped-frontend:latest
restart: unless-stopped
depends_on:
- piped
container_name: piped-frontend
2022-06-02 03:38:55 +00:00
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
2022-11-03 17:28:09 +00:00
piped-proxy:
image: 1337kavin/piped-proxy:latest
restart: unless-stopped
2022-11-03 17:28:09 +00:00
environment:
- UDS=1
volumes:
2022-11-03 17:28:09 +00:00
- piped-proxy:/app/socket
container_name: piped-proxy
piped:
image: 1337kavin/piped:latest
restart: unless-stopped
volumes:
- ./config/config.properties:/app/config.properties:ro
depends_on:
- postgres
container_name: piped-backend
2022-11-03 17:40:46 +00:00
nginx:
image: nginx:mainline-alpine
restart: unless-stopped
volumes:
2022-11-03 17:40:46 +00:00
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
- ./config/pipedapi.conf:/etc/nginx/conf.d/pipedapi.conf:ro
container_name: nginx
depends_on:
- piped
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./config/Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
2022-11-03 17:28:09 +00:00
- piped-proxy:/var/run/piped-proxy
container_name: caddy
postgres:
image: postgres:13-alpine
restart: unless-stopped
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=piped
- POSTGRES_USER=piped
- POSTGRES_PASSWORD=changeme
container_name: postgres
watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_RESTARTING=true
container_name: watchtower
2022-11-03 17:40:46 +00:00
command: piped-frontend piped-backend piped-proxy nginx caddy postgres watchtower
volumes:
2022-01-12 22:52:03 +00:00
caddy_data: null
2022-11-03 17:28:09 +00:00
piped-proxy: null