mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
50 lines
911 B
YAML
50 lines
911 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
db:
|
|
image: mysql
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
container_name: avideo_db
|
|
#tty: true
|
|
ports:
|
|
- 3306
|
|
environment:
|
|
- MYSQL_USER=youphptube
|
|
- MYSQL_PASSWORD=youphptube
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
- MYSQL_DATABASE=avideo
|
|
- TZ=UTC
|
|
expose:
|
|
- 3306
|
|
volumes:
|
|
- ./storage/data:/var/lib/mysql
|
|
networks:
|
|
- app_net
|
|
|
|
web:
|
|
depends_on:
|
|
- db
|
|
hostname: avideo_web
|
|
build: .
|
|
environment:
|
|
- DEBIAN_FRONTEND=noninteractive
|
|
- TZ=UTC
|
|
- webSiteRootURL
|
|
- HTTP_PORT
|
|
- HTTPS_PORT
|
|
- Socket_PORT
|
|
expose:
|
|
- 80
|
|
- 443
|
|
#volumes:
|
|
# - .:/var/www/avideo:rw
|
|
networks:
|
|
- app_net
|
|
ports:
|
|
- '${HTTP_PORT}:80'
|
|
- '${HTTPS_PORT}:443'
|
|
#Docker Networks
|
|
networks:
|
|
app_net:
|
|
driver: bridge
|
|
|