feat: add MariaDB Docker container for Darkwatch
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e608977b0a
commit
0a32b261e0
3 changed files with 28 additions and 0 deletions
8
.env.example
Normal file
8
.env.example
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
DB_HOST=127.0.0.1
|
||||||
|
DB_PORT=3307
|
||||||
|
DB_NAME=darkwatch
|
||||||
|
DB_USER=darkwatch
|
||||||
|
DB_PASSWORD=darkwatch_dev
|
||||||
|
DB_ROOT_PASSWORD=rootpassword_dev
|
||||||
|
JWT_SECRET=change_me_in_production
|
||||||
|
CLIENT_URL=http://localhost:5173
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,3 +2,5 @@ node_modules/
|
||||||
server/data/
|
server/data/
|
||||||
.superpowers/
|
.superpowers/
|
||||||
.worktrees/
|
.worktrees/
|
||||||
|
server/.env
|
||||||
|
*.db
|
||||||
|
|
|
||||||
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
name: darkwatch
|
||||||
|
services:
|
||||||
|
darkwatch-maria:
|
||||||
|
image: mariadb:11
|
||||||
|
container_name: darkwatch-maria
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- darkwatch-mariadb-data:/var/lib/mysql
|
||||||
|
ports:
|
||||||
|
- "3307:3306"
|
||||||
|
environment:
|
||||||
|
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
|
||||||
|
MARIADB_DATABASE: ${DB_NAME}
|
||||||
|
MARIADB_USER: ${DB_USER}
|
||||||
|
MARIADB_PASSWORD: ${DB_PASSWORD}
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
darkwatch-mariadb-data:
|
||||||
Loading…
Add table
Reference in a new issue