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