55 lines
985 B
YAML
55 lines
985 B
YAML
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:
|