first commit

This commit is contained in:
alexandrump
2026-02-09 01:02:53 +01:00
commit 82f3464565
90 changed files with 4788 additions and 0 deletions

54
docker-compose.yml Normal file
View File

@@ -0,0 +1,54 @@
version: '3.8'
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: gob
POSTGRES_PASSWORD: gobpass
POSTGRES_DB: gob_alert
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
adminer:
image: adminer
restart: unless-stopped
ports:
- "8080:8080"
api:
build:
context: ./apps/api
environment:
DATABASE_URL: postgres://gob:gobpass@postgres:5432/gob_alert
API_ADMIN_KEY: "changeme"
NODE_ENV: production
depends_on:
- postgres
ports:
- "3000:3000"
restart: unless-stopped
web:
build:
context: ./apps/web
environment:
API_URL: http://api:3000
NODE_ENV: production
depends_on:
- api
ports:
- "3001:3000"
restart: unless-stopped
volumes:
postgres_data:
redis_data: