first commit

This commit is contained in:
Aitzol Berasategi 2021-04-15 20:15:46 +02:00
commit b7432e8ee0
6 changed files with 104 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM registry.gitlab.com/minetest/minetest/server:latest
#ARG NI='aitzol'
ARG NI
USER root
RUN adduser -S $NI -G minetest -u 1000 --disabled-password
RUN chown -R $NI:minetest /var/lib/minetest

0
README.md Normal file
View File

33
docker-compose.yaml Normal file
View File

@ -0,0 +1,33 @@
#docker-compose.yaml
version: "3"
services:
irudi:
#build: .
image: minetest.aitzol:latest
#environment:
#- ADMIN="${USER}"
build:
context: .
dockerfile: Dockerfile
args:
NI: "${USER}"
server:
#image: registry.gitlab.com/minetest/minetest/server:latest
depends_on:
- "irudi"
image: minetest.aitzol:latest
container_name: minetest-zerbitzaria
environment:
- USER_UID=1000
- USER_GID=1000
restart: unless-stopped
#user: aitzol
volumes:
- ./data:/var/lib/minetest/:rw
#- ./conf:/etc/minetest/:rw
ports:
- 30000:30000/udp

View File

@ -0,0 +1,25 @@
#docker-compose.yaml
version: "3"
services:
irudi:
build: .
image: dude/man:v2
depends_on:
- "server"
server:
image: registry.gitlab.com/minetest/minetest/server:latest
container_name: minetest-zerbitzaria
environment:
- USER_UID=30000
- USER_GID=30000
restart: unless-stopped
user: minetest
volumes:
- ./data:/var/lib/minetest/:rw
- ./conf:/etc/minetest/:rw
ports:
- 30000:30000/udp

View File

@ -0,0 +1,25 @@
#docker-compose.yaml
version: "3"
services:
irudi:
build: .
image: minetest.aitzol:latest
depends_on:
- "server"
server:
image: registry.gitlab.com/minetest/minetest/server:latest
container_name: minetest-zerbitzaria
environment:
- USER_UID=1000
- USER_GID=1000
restart: unless-stopped
#user: aitzol
volumes:
- ./data:/var/lib/minetest/:rw
- ./conf:/etc/minetest/:rw
ports:
- 30000:30000/udp

15
docker-compose.yaml.kopia Normal file
View File

@ -0,0 +1,15 @@
#docker-compose.yaml
server:
image: registry.gitlab.com/minetest/minetest/server:latest
container_name: minetest-zerbitzaria
environment:
- USER_UID=30000
- USER_GID=30000
restart: unless-stopped
user: minetest
volumes:
- ./data:/var/lib/minetest/:rw
- ./conf:/etc/minetest/:rw
ports:
- 30000:30000/udp