Prepare for deploy #2

Merged
neintonine merged 1 commit from develop into master 2024-11-05 19:05:44 +00:00
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: