44 lines
729 B
YAML
44 lines
729 B
YAML
|
version: '3.8'
|
||
|
|
||
|
services:
|
||
|
mysql:
|
||
|
image: mysql:latest
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: password
|
||
|
MYSQL_DATABASE: waterwolf-auth
|
||
|
ports:
|
||
|
- "3306:3306"
|
||
|
volumes:
|
||
|
- mysql-data:/var/lib/mysql
|
||
|
redis:
|
||
|
image: redis/redis-stack-server:6.2.2-v5
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- "6379:6379"
|
||
|
|
||
|
backend:
|
||
|
build: ./apps/backend
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- "3000:3000"
|
||
|
depends_on:
|
||
|
- mysql
|
||
|
- redis
|
||
|
env_file:
|
||
|
- .env
|
||
|
volumes:
|
||
|
- ./keys:/keys
|
||
|
|
||
|
frontend:
|
||
|
build: ./apps/frontend
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- "3001:3001"
|
||
|
env_file:
|
||
|
- .env
|
||
|
|
||
|
|
||
|
|
||
|
volumes:
|
||
|
mysql-data:
|