From 7439475766877b7c053d7a83cf0310f6d2135f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Thu, 2 Jan 2025 14:04:58 +0100 Subject: [PATCH] feat: finalize file structure for Docker --- .gitignore | 1 + docker/Dockerfile.database | 3 + Dockerfile => docker/Dockerfile.game | 7 +- .../Dockerfile.planetgen | 0 docker/compose.yml | 74 +++++++++++++++++++ docker/env.example | 17 +++++ 6 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 docker/Dockerfile.database rename Dockerfile => docker/Dockerfile.game (96%) rename Dockerfile.planetgen => docker/Dockerfile.planetgen (100%) create mode 100644 docker/compose.yml create mode 100644 docker/env.example diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da41f82 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +docker/.env diff --git a/docker/Dockerfile.database b/docker/Dockerfile.database new file mode 100644 index 0000000..6d071f2 --- /dev/null +++ b/docker/Dockerfile.database @@ -0,0 +1,3 @@ +FROM postgres:17-alpine +ADD sql /opt/lwsql +ADD misc/init-sql.sh /docker-entrypoint-initdb.d diff --git a/Dockerfile b/docker/Dockerfile.game similarity index 96% rename from Dockerfile rename to docker/Dockerfile.game index 0897af6..682b7b5 100644 --- a/Dockerfile +++ b/docker/Dockerfile.game @@ -1,5 +1,4 @@ FROM debian:12-slim -ADD . /opt/lwb5 RUN <