dot-net/docker-compose.yml

46 lines
952 B
YAML
Raw Permalink Normal View History

2025-01-11 21:20:05 +00:00
services:
aspnet-prison:
container_name: aspnet-prison
build:
context: .
dockerfile: Dockerfile
ports:
2025-01-11 21:29:43 +00:00
- "5233:5233"
2025-01-11 21:20:05 +00:00
volumes:
- ./:/app
networks:
- aspnet-network
aspnet-postgres:
image: postgres:latest
container_name: aspnet-postgres
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_USER: root
POSTGRES_PASSWORD: root
PGDATA: /var/lib/postgresql/data
# ports:
# - '5432:5432'
networks:
- aspnet-network
aspnet-pgadmin4:
image: elestio/pgadmin:latest
container_name: aspnet-pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_LISTEN_PORT: 8080
ports:
- "8080:8080"
volumes:
- ./servers.json:/pgadmin4/servers.json
networks:
- aspnet-network
networks:
aspnet-network:
driver: bridge