MCServerDocker/docker-compose.yml

20 lines
316 B
YAML
Raw Normal View History

2024-01-25 23:19:06 +01:00
services:
2024-04-20 16:55:44 +02:00
${SERVICE_NAME}:
2024-01-25 23:19:06 +01:00
build: .
2024-04-20 16:55:44 +02:00
container_name: ${SERVICE_NAME}
2024-04-20 16:46:20 +02:00
restart: unless-stopped
stop_grace_period: 120s
2024-01-25 23:19:06 +01:00
volumes:
- ./server:/data
env_file:
- ./config.env
2024-01-25 23:19:06 +01:00
ports:
- 25565:25565
2024-01-27 20:38:42 +01:00
networks:
2024-04-20 16:55:44 +02:00
- ${NETWORK_NAME}
2024-01-27 20:38:42 +01:00
networks:
2024-04-20 16:55:44 +02:00
${NETWORK_NAME}:
name: ${NETWORK_NAME}
2024-01-27 20:38:42 +01:00
external: false