47 lines
953 B
YAML
47 lines
953 B
YAML
|
services:
|
||
|
aspnet-prison:
|
||
|
container_name: aspnet-prison
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
ports:
|
||
|
- "5266:5266"
|
||
|
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
|
||
|
|