### # Minimal Configuration File # # This configuration strips services to the absolute bare essentials to function. # Very useful for reverse proxy configurations where a user would override networking anyways. ### services: ## # -- Panel Cron -- # These are required for schedules and other misc tasks to # function correctly. ## tcron: command: p:cron container_name: tcron env_file: ${TPATH}conf.d/panel.env image: ccarney16/pterodactyl-panel:${PANEL_VERSION:-latest} profiles: [ panel ] restart: always volumes: - tpanel:/data networks: - pterodactyl ## # -- Pterodactyl Daemon -- # This service provides the wings runtime. ## twings: container_name: twings environment: - TZ=${DAEMON_TIMEZONE:-UTC} image: docker.io/ccarney16/pterodactyl-daemon:${DAEMON_VERSION:-latest} privileged: true profiles: [ daemon ] restart: always volumes: - ${DAEMON_DATA_DIRECTORY:-/var/lib/pterodactyl}:${DAEMON_DATA_DIRECTORY:-/var/lib/pterodactyl} - ${DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock - /tmp/pterodactyl/:/tmp/pterodactyl/ - ${TPATH}conf.d/daemon:/etc/pterodactyl working_dir: ${DAEMON_DATA_DIRECTORY:-/var/lib/pterodactyl} networks: - pterodactyl_nw - caddy ## # -- MariaDB -- # Required for the control panel to work. # Stores Server/User information ## tdb: image: docker.io/library/mariadb:10.11 container_name: tdb env_file: ${TPATH}conf.d/mariadb.env networks: - pterodactyl profiles: [ panel ] restart: always volumes: - tdb:/var/lib/mysql ## # -- Pterodactyl Panel -- # This is the container that provides the main web interface. ## tpanel: env_file: ${TPATH}conf.d/panel.env image: docker.io/ccarney16/pterodactyl-panel:${PANEL_VERSION:-latest} container_name: tpanel profiles: [ panel ] ports: - 4848:80 restart: always volumes: - tpanel:/data depends_on: tdb: condition: service_started tredis: condition: service_started networks: - pterodactyl - caddy ## # -- Redis -- ## tredis: container_name: tredis cpu_count: 2 image: docker.io/library/redis:alpine mem_limit: 128m networks: - pterodactyl profiles: [ panel ] restart: always ## # -- Panel Worker -- ## tworker: container_name: tworker command: p:worker env_file: ${TPATH}conf.d/panel.env image: docker.io/ccarney16/pterodactyl-panel:${PANEL_VERSION:-latest} profiles: [ panel ] restart: always volumes: - tpanel:/data networks: - pterodactyl volumes: tpanel: name: tpanel external: true tdb: name: tdb external: true networks: caddy: external: true pterodactyl: external: true pterodactyl_nw: external: true