Prepare for deploy

This commit is contained in:
Michel 2024-11-05 20:05:05 +01:00
parent d6ebf8f4ff
commit cc8182b506
5 changed files with 30 additions and 0 deletions

View file

@ -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"

22
deploy/docker-compose.yml Normal file
View file

@ -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: