Files
graphs/docker-compose.yml
Cauê Faleiros cc0fd3495e
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s
fix: hardcode docker image urls to simplify portainer deployment
2026-05-04 15:09:25 -03:00

44 lines
1.0 KiB
YAML

version: '3.8'
services:
db:
image: postgres:15-alpine
container_name: graph_postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-graphuser}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-graphpassword}
POSTGRES_DB: ${POSTGRES_DB:-graphdb}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
restart: unless-stopped
backend:
build:
context: ./backend
image: gitea.blyzer.com.br/blyzer/graphs-backend:latest
container_name: graph_backend
ports:
- "3004:3004"
environment:
- PORT=3004
- DATABASE_URL=postgres://${POSTGRES_USER:-graphuser}:${POSTGRES_PASSWORD:-graphpassword}@db:5432/${POSTGRES_DB:-graphdb}
- API_KEY=${API_KEY:-nexstar_secret_key_123}
depends_on:
- db
restart: unless-stopped
frontend:
build:
context: .
image: gitea.blyzer.com.br/blyzer/graphs-frontend:latest
container_name: graph_frontend
ports:
- "3000:80"
depends_on:
- backend
restart: unless-stopped
volumes:
pgdata: