33 lines
562 B
YAML
33 lines
562 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
bot:
|
|
build: .
|
|
container_name: spa-bot
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./logs:/app/logs
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: spa-bot-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: spabot
|
|
POSTGRES_PASSWORD: spabot_password
|
|
POSTGRES_DB: spabot
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
volumes:
|
|
pgdata:
|