1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/docker-compose.yml
Caleb Mazalevskis 18f48303d9
Fix line endings and add a .gitattributes file.
The .gitattributes file can be used to enforce and manage the types of line
endings desired for specific types of files at the repository, as well as
to manage GitHub's automatic detection of documentation and the types of
programming languages used at the repository.

I've commented links to the relevant documentation within the attached
.gitattributes file to assist with guiding future additions to the file.
2022-07-04 23:48:34 +08:00

65 lines
1.5 KiB
YAML

version: '3'
services:
web:
build: .
restart: "unless-stopped"
ports:
- "80:80"
- "443:443"
environment:
DB_MYSQL_HOST: "database"
DB_MYSQL_PORT: 3306
DB_MYSQL_NAME: "avideo"
DB_MYSQL_USER: "avideo"
DB_MYSQL_PASSWORD: "avideo"
SERVER_NAME: "localhost"
ENABLE_PHPMYADMIN: "yes"
CREATE_TLS_CERTIFICATE: "yes"
TLS_CERTIFICATE_FILE: "/etc/apache2/ssl/localhost.crt"
TLS_CERTIFICATE_KEY: "/etc/apache2/ssl/localhost.key"
CONTACT_EMAIL: "admin@localhost"
SYSTEM_ADMIN_PASSWORD: "password"
WEBSITE_TITLE: "AVideo"
MAIN_LANGUAGE: "en_US"
volumes:
- "./var/www/avideo:/var/www/avideo"
depends_on:
- database
- phpmyadmin
networks:
- app_net
phpmyadmin:
image: "phpmyadmin/phpmyadmin"
restart: "unless-stopped"
environment:
PMA_ABSOLUTE_URI: "https://localhost/phpmyadmin"
PMA_HOST: "database"
PMA_PORT: 3306
PMA_CONTROLUSER: "avideo"
PMA_CONTROLPASS: "avideo"
PMA_PMADB: "avideo"
HIDE_PHP_VERSION: "true"
depends_on:
- database
networks:
- app_net
database:
image: "mariadb:latest"
restart: "unless-stopped"
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_INITDB_SKIP_TZINFO: 1
MYSQL_DATABASE: "avideo"
MYSQL_USER: "avideo"
MYSQL_PASSWORD: "avideo"
volumes:
- ./.compose/db:/var/lib/mysql
networks:
- app_net
networks:
app_net:
driver: bridge