From cc8182b506dc6d9e5ae201150687539cf2accc29 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 5 Nov 2024 20:05:05 +0100 Subject: [PATCH] Prepare for deploy --- config/.env.example | 8 +++++++ deploy/{local-testing => }/Caddyfile | 0 deploy/{local-testing => }/Dockerfile | 0 ...ker-compose.yml => docker-compose-dev.yml} | 0 deploy/docker-compose.yml | 22 +++++++++++++++++++ 5 files changed, 30 insertions(+) rename deploy/{local-testing => }/Caddyfile (100%) rename deploy/{local-testing => }/Dockerfile (100%) rename deploy/{local-testing/docker-compose.yml => docker-compose-dev.yml} (100%) create mode 100644 deploy/docker-compose.yml diff --git a/config/.env.example b/config/.env.example index e69de29..5993b68 100644 --- a/config/.env.example +++ b/config/.env.example @@ -0,0 +1,8 @@ +PRODUCTION=false + +DISCORD_CLIENT_ID="" +DISCORD_CLIENT_SECRET="" +DISCORD_CLIENT_LOGIN_URI="" + +DB_DRIVER="pdo_sqlite" +DB_PATH="/app/data/db.sqlite" \ No newline at end of file diff --git a/deploy/local-testing/Caddyfile b/deploy/Caddyfile similarity index 100% rename from deploy/local-testing/Caddyfile rename to deploy/Caddyfile diff --git a/deploy/local-testing/Dockerfile b/deploy/Dockerfile similarity index 100% rename from deploy/local-testing/Dockerfile rename to deploy/Dockerfile diff --git a/deploy/local-testing/docker-compose.yml b/deploy/docker-compose-dev.yml similarity index 100% rename from deploy/local-testing/docker-compose.yml rename to deploy/docker-compose-dev.yml diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml new file mode 100644 index 0000000..d1be564 --- /dev/null +++ b/deploy/docker-compose.yml @@ -0,0 +1,22 @@ +services: + caddy: + container_name: gamesshop_caddy + image: caddy + ports: + - 8006:80 + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile + - ./../..:/app + - caddy_config:/config + - caddy_data:/data + depends_on: + - php-fpm + php-fpm: + container_name: gamesshop_php + build: . + volumes: + - ./../..:/app + +volumes: + caddy_data: + caddy_config: \ No newline at end of file -- 2.45.2