version: '3' services: app: build: ./app/. container_name: ${appname}-app restart: "unless-stopped" # ports: # - "80:80" environment: DB_HOST: db-app # DB_MYSQL_PORT: 3306 DB_NAME: "youPHPtube" DB_USER: "${sql_user}" DB_PASSWORD: "${sql_pass}" DOMAIN: "${fqdn}" DOMAIN_PROTOCOL: "https" ADMIN_EMAIL: "$admin_email}" ADMIN_PASSWORD: "${admin_pass}" SITE_TITLE: "${site_title}" MAIN_LANGUAGE: "en_US" ENCODER: "${encoder_fqdn}" NFS_SERVER: "192.168.1.45" NFS_SHARE: "/mnt/biffa/youPHPtube" PHP_MEMORY_LIMIT: "2048M" volumes: - ./videos:/var/www/html/videos env_file: - ./production.env depends_on: - db-app networks: - proxy encoder: build: ./encoder/. # image: jandieman/youPHPTubeEncoder container_name: ${appname}-enc environment: DOMAIN: ${fqdn} DOMAIN_PROTOCOL: ${http_scheme} ADMIN_PASSWORD: ${admin_pass} DB_HOST: db-enc DB_USER: ${sql_user} DB_PASSWORD: ${sql_pass} PHP_MEMORY_LIMIT: 2048M volumes: - ./encoder/videos:/var/www/html/videos # ports: # - "8000:80" restart: always env_file: - ./production.env depends_on: - db-enc networks: - proxy db-app: container_name: ${appname}-db-app image: mariadb:${mariadb_version} command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --default-authentication-plugin=mysql_native_password restart: always volumes: - ./db/app:/var/lib/mysql:rw environment: MYSQL_ROOT_PASSWORD: "${sql_root_pass}" MYSQL_PASSWORD: "${sql_pass}" MYSQL_DATABASE: "youPHPtube" MYSQL_USER: "${sql_user}" # ports: # - 3306:3306 env_file: - ./production.env networks: - proxy restart: always db-enc: container_name: ${appname}-db-enc image: mariadb:${mariadb_version} command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --default-authentication-plugin=mysql_native_password restart: always volumes: - ./db/enc:/var/lib/mysql:rw environment: MYSQL_ROOT_PASSWORD: "${sql_root_pass}" MYSQL_PASSWORD: "${sql_pass}" MYSQL_DATABASE: "youPHPTubeEncoder" MYSQL_USER: "${sql_user}" # ports: # - 3307:3306 env_file: - ./production.env networks: - proxy restart: always networks: proxy: external: true