This commit is contained in:
2025-05-06 11:36:10 +08:00
parent 3a624ba8d1
commit 102c108074
14 changed files with 1571 additions and 73 deletions

View File

@@ -19,7 +19,8 @@ services:
keydb:
<<: *common-attributes
container_name: iptv-keydb
image: eqalpha/keydb:latest
build:
dockerfile: docker/keydb/dockerfile
user: "${REDIS_UID}:${REDIS_GID}"
volumes:
- ./docker/keydb/keydb.conf:/etc/keydb/keydb.conf
@@ -28,32 +29,50 @@ services:
ports:
- "${REDIS_PORT:-6379}:6379"
php:
php-main:
<<: *common-attributes
container_name: iptv-php
container_name: iptv-main
environment:
- PHP_IDE_CONFIG=serverName=iptv.local
build:
dockerfile: docker/php/${IPTV_ENV}/dockerfile
dockerfile: docker/php/${IPTV_ENV}/dockerfile.main
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
- ./log/php:/var/log/php:rw
- ./svc-main:/var/www:rw
- ./web:/var/www:rw
depends_on:
- keydb
php-cron:
<<: *common-attributes
container_name: iptv-cron
environment:
- PHP_IDE_CONFIG=serverName=iptv.local
build:
dockerfile: docker/php/${IPTV_ENV}/dockerfile.cron
volumes:
- ./docker/php/${IPTV_ENV}/cron_entrypoint.sh:/entrypoint.sh
- ./docker/php/${IPTV_ENV}/cron_jobs:/etc/cron.d/iptv_jobs
- ./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
- ./log/php:/var/log/php:rw
- ./web:/var/www:rw
depends_on:
- keydb
nginx:
<<: *common-attributes
container_name: iptv-nginx
image: nginx:latest
build:
dockerfile: docker/nginx/dockerfile
volumes:
- ./docker/nginx/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./log/nginx:/var/log/nginx:rw
- ./svc-main:/var/www:ro
- ./web:/var/www:ro
ports:
- "8080:80"
links:
- php
- php-main
depends_on:
- php
- php-main