Files
Docker/docker-compose.template.yml
T
2022-12-13 11:08:30 +00:00

29 lines
1005 B
YAML

version: '3'
services:
hyperpipe-frontend:
image: codeberg.org/hyperpipe/hyperpipe:latest
container_name: hyperpipe-frontend
restart: unless-stopped
entrypoint: sh -c 'find /usr/share/nginx/html -type f -exec sed -i s/pipedapi.kavin.rocks/PIPED/g {} \; -exec sed -i s/hyperpipeapi.onrender.org/BACKEND/g {} \; && /docker-entrypoint.sh && nginx -g "daemon off;"'
ports:
- '8080:80'
hyperpipe-backend:
image: codeberg.org/hyperpipe/hyperpipe-backend:latest
container_name: hyperpipe-backend
environment:
- HYP_PROXY='hyperpipe-proxy.onrender.com'
restart: unless-stopped
ports:
- '3000:3000'
watchtower:
image: containrrr/watchtower
container_name: 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
command: hyperpipe-frontend hyperpipe-backend watchtower