version: "3.1"
services:
db:
image: mariadb
restart: unless-stopped
environment:
- "MYSQL_DATABASE=pterodactyl"
- "MYSQL_PASSWORD=pterodactyl"
- "MYSQL_RANDOM_ROOT_PASSWORD=yes"
- "MYSQL_USER=pterodactyl"
networks:
- default
volumes:
- db:/var/lib/mysql
http:
build:
context: services/http
dockerfile: Dockerfile
depends_on:
- "php"
ports:
- 80:80
- env:/var/www/html/env
- panel:/var/www/html/pterodactyl
- storage:/var/www/html/pterodactyl/storage
php:
context: services/php
- "db"
redis:
image: redis:alpine
default:
driver: bridge
env:
panel:
storage: