Merge pull request 'Prepare for deploy' (#2) from develop into master

Reviewed-on: #2
This commit is contained in:
neintonine 2024-11-05 19:05:43 +00:00
commit d47e7a1363
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: