schools-api/docker-compose.yaml

36 lines
548 B
YAML
Raw Permalink Normal View History

2023-09-18 20:54:35 +02:00
version: "3.8"
services:
schools:
build: .
env_file:
- .env
2023-09-18 20:54:35 +02:00
ports:
- "3002:3002"
networks:
- docker_network
depends_on:
- db
db:
2023-09-24 20:03:09 +02:00
image: postgres:15-alpine
2023-09-18 20:54:35 +02:00
restart: always
2023-09-19 21:24:30 +02:00
ports:
- "5432:5432"
2023-09-18 20:54:35 +02:00
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=schools
networks:
- docker_network
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local
networks:
docker_network:
name: wulkanowy_network