45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
image: franklioxygen/mytube:backend-latest
|
|
pull_policy: always
|
|
container_name: mytube-backend
|
|
volumes:
|
|
- /share/CACHEDEV2_DATA/Medias/MyTube/uploads:/app/uploads
|
|
- /share/CACHEDEV2_DATA/Medias/MyTube/data:/app/data
|
|
environment:
|
|
- PORT=5551
|
|
restart: unless-stopped
|
|
networks:
|
|
- mytube-network
|
|
|
|
frontend:
|
|
image: franklioxygen/mytube:frontend-latest
|
|
pull_policy: always
|
|
container_name: mytube-frontend
|
|
ports:
|
|
- "5556:5556"
|
|
environment:
|
|
# For internal container communication, use the service name
|
|
# These will be replaced at runtime by the entrypoint script
|
|
- VITE_API_URL=/api
|
|
- VITE_BACKEND_URL=
|
|
# For QNAP or other environments where service discovery doesn't work,
|
|
# you can override these values using a .env file with:
|
|
# - API_HOST=your-ip-or-hostname
|
|
# - API_PORT=5551
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
networks:
|
|
- mytube-network
|
|
|
|
volumes:
|
|
backend-data:
|
|
driver: local
|
|
|
|
networks:
|
|
mytube-network:
|
|
driver: bridge
|