container-server/services/games/docker-compose.yml
Carsten Sprung 7f5755b537 fix: Remove hostnames from docker-compose configs (#76)
- [x] This fixes services being not reachable from inside their own container
- [x] Container name must be different to URL hostname

Reviewed-on: #76
2024-09-30 17:27:30 +02:00

28 lines
740 B
YAML

version: "3.7"
# https://github.com/imagegenius/docker-amp/pkgs/container/amp
services:
games:
image: ghcr.io/imagegenius/amp:2.5.1-ubuntu
container_name: games
restart: "${RESTART:-no}"
domainname: ${BASE_DOMAIN}
mac_address: 02:42:AC:D7:11:9C # Please see the README about this field.
labels:
com.centurylinklabs.watchtower.enable: false
expose:
- "8080" # expose amp web ui port for proxy
ports:
- 25565:25565 # For Java Edition (TCP)
- 2223:2223 # AMP FTP
environment:
- TZ=${TIMEZONE}
- LICENCE=${MINECRAFT_AMP_LICENSE}
- MODULE=ADS
- JAVA_VERSIONS=8
volumes:
- ${BASE_DIR:-/srv}/games:/config
networks:
- proxy
- mail