1
0
Fork 0
This repository has been archived on 2025-01-12. You can view files and clone it, but cannot push or open issues or pull requests.
pterodactyl-panel-docker/docker-compose.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

version: "3.1"
2017-12-23 15:11:21 -08:00
services:
2017-12-23 15:11:21 -08:00
db:
image: mariadb
restart: unless-stopped
2017-12-23 15:11:21 -08:00
environment:
- "MYSQL_DATABASE=pterodactyl"
- "MYSQL_PASSWORD=pterodactyl"
- "MYSQL_RANDOM_ROOT_PASSWORD=yes"
- "MYSQL_USER=pterodactyl"
networks:
- traefik
2017-12-23 15:11:21 -08:00
- default
volumes:
- ./db:/var/lib/mysql
2017-12-23 15:11:21 -08:00
http:
build:
context: services/http
dockerfile: Dockerfile
restart: unless-stopped
2017-12-23 15:11:21 -08:00
depends_on:
- "php"
expose:
- 80
2017-12-23 15:11:21 -08:00
networks:
- traefik
2017-12-23 15:11:21 -08:00
- default
volumes:
- ./env:/var/www/html/env
- ./panel:/var/www/html/pterodactyl
- ./storage:/var/www/html/pterodactyl/storage
2017-12-23 15:11:21 -08:00
php:
build:
context: services/php
dockerfile: Dockerfile
restart: unless-stopped
2018-02-17 18:26:24 -08:00
depends_on:
- "db"
2017-12-23 15:11:21 -08:00
networks:
- default
volumes:
- ./env:/var/www/html/env
- ./panel:/var/www/html/pterodactyl
- ./storage:/var/www/html/pterodactyl/storage
2017-12-23 15:11:21 -08:00
redis:
image: redis:alpine
restart: unless-stopped
2017-12-23 15:11:21 -08:00
networks:
- default
networks:
default:
driver: bridge
traefik:
external: true