schools-api/docker-compose.yaml

34 lines
521 B
YAML
Raw Normal View History

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