nyanimedb/deploy/docker-compose.yml
Iron_Felix 28c38ca1a0
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m44s
Build and Deploy Go App / deploy (push) Successful in 2m47s
feat: db url env added
2025-10-11 02:27:13 +03:00

52 lines
1.2 KiB
YAML

services:
postgres:
image: postgres:${POSTGRES_VERSION}
container_name: postgres
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# pgadmin:
# image: dpage/pgadmin4:${PGADMIN_VERSION}
# container_name: pgadmin
# restart: always
# environment:
# PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
# PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
# ports:
# - "${PGADMIN_PORT}:80"
# depends_on:
# - postgres
# volumes:
# - pgadmin_data:/var/lib/pgadmin
nyanimedb-backend:
image: meowgit.nekoea.red/nihonium/nyanimedb-backend:latest
container_name: nyanimedb-backend
restart: always
environment:
LOG_LEVEL: ${LOG_LEVEL}
DATABASE_URL: ${DATABASE_URL}
ports:
- "8080:8080"
depends_on:
- postgres
nyanimedb-frontend:
image: meowgit.nekoea.red/nihonium/nyanimedb-frontend:latest
container_name: nyanimedb-frontend
restart: always
ports:
- "8081:80"
depends_on:
- nyanimedb-backend
volumes:
postgres_data:
pgadmin_data: