MCServerDocker/docker-compose.yml

19 lines
316 B
YAML

services:
${SERVICE_NAME}:
build: .
container_name: ${SERVICE_NAME}
restart: unless-stopped
stop_grace_period: 120s
volumes:
- ./server:/data
env_file:
- ./config.env
ports:
- 25565:25565
networks:
- ${NETWORK_NAME}
networks:
${NETWORK_NAME}:
name: ${NETWORK_NAME}
external: false