This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nextjs-serve-actions/docker-compose.yml
2024-07-08 11:02:01 +02:00

33 lines
655 B
YAML

version: '3.8'
services:
app:
build:
context: ./
dockerfile: Dockerfile
image: app
container_name: backend
restart: unless-stopped
ports:
- '3000:3000'
environment:
- PORT=3000
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/postgres
depends_on:
- postgres
postgres:
image: postgres:latest
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: