90 lines
2.3 KiB
YAML
90 lines
2.3 KiB
YAML
name: m3u-su
|
|
|
|
networks:
|
|
m3u-su-network:
|
|
driver: bridge
|
|
|
|
x-common-attributes: &common-attributes
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
extra_hosts:
|
|
- host.docker.internal:host-gateway
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
networks:
|
|
- m3u-su-network
|
|
|
|
services:
|
|
nginx:
|
|
<<: *common-attributes
|
|
container_name: m3u-su-nginx
|
|
image: nginx:latest
|
|
pull_policy: always
|
|
volumes:
|
|
- ./docker/nginx/vhost.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- ./log/nginx:/var/log/nginx:rw
|
|
- ./web:/var/www:ro
|
|
ports:
|
|
- 8080:80
|
|
depends_on:
|
|
- web
|
|
|
|
keydb:
|
|
<<: *common-attributes
|
|
container_name: m3u-su-keydb
|
|
image: eqalpha/keydb:latest
|
|
pull_policy: always
|
|
user: ${KEYDB_UID}:${KEYDB_GID}
|
|
entrypoint: ["sh", "/entrypoint.sh"]
|
|
volumes:
|
|
- ./docker/keydb/entrypoint.sh:/entrypoint.sh
|
|
- ./docker/keydb/keydb.conf:/etc/keydb/keydb.conf
|
|
- ./docker/keydb/data/:/data:rw
|
|
ports:
|
|
- ${KEYDB_PORT:-6379}:6379
|
|
|
|
web:
|
|
<<: *common-attributes
|
|
container_name: m3u-su-web
|
|
build:
|
|
context: .
|
|
dockerfile: dockerfile.web.${IPTV_ENV}
|
|
environment:
|
|
- PHP_IDE_CONFIG=serverName=m3u-su.local
|
|
volumes:
|
|
- ./docker/php/${IPTV_ENV}/www.conf:/usr/local/etc/php-fpm.d/www.conf:ro
|
|
- ./docker/php/${IPTV_ENV}/php.ini:/usr/local/etc/php/conf.d/php.ini:ro
|
|
- ./playlists/playlists.ini:/var/www/config/playlists.ini
|
|
- ./log/php:/var/log/php:rw
|
|
- ./web:/var/www:rw
|
|
depends_on:
|
|
- keydb
|
|
|
|
checker:
|
|
<<: *common-attributes
|
|
container_name: m3u-su-checker
|
|
image: git.axenov.dev/iptv/iptvc:latest
|
|
pull_policy: always
|
|
command: ["check", "--repeat", "0", "--every", "${CHECKER_WAIT:-60}"]
|
|
environment:
|
|
- CACHE_ENABLED=true
|
|
- CACHE_HOST=m3u-su-keydb
|
|
- CACHE_PORT=${KEYDB_PORT:-6379}
|
|
- CACHE_USERNAME=${KEYDB_USERNAME}
|
|
- CACHE_PASSWORD=${KEYDB_PASSWORD}
|
|
- CACHE_DB=${CHECKER_DB:-0}
|
|
- CACHE_TTL=${CHECKER_TTL:-1800}
|
|
volumes:
|
|
- ./playlists/playlists.ini:/app/playlists.ini
|
|
- ./playlists/channels.json:/app/channels.json
|
|
depends_on:
|
|
- keydb
|
|
|
|
docs:
|
|
<<: *common-attributes
|
|
container_name: m3u-su-docs
|
|
image: git.axenov.dev/iptv/m3u-su-docs:latest
|
|
pull_policy: always
|