You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Portfolio/docker-compose.yml

25 lines
466 B

version: "3"
services:
app:
build: .
container_name: portfolio
environment:
DATABASE_URL: "postgres://portfolio:portfolio@db:5432/portfolio"
ports:
- 3000:3000
db:
image: postgres:14
container_name: portfolio-db
environment:
POSTGRES_USER: "portfolio"
POSTGRES_PASSWORD: "portfolio"
POSTGRES_DB: "portfolio"
ports:
- 5432:5432
volumes:
- db:/var/lib/postgresql/data
volumes:
db: