43 lines
964 B
YAML
43 lines
964 B
YAML
services:
|
|
# api:
|
|
# container_name: sg-api
|
|
# build:
|
|
# context: .
|
|
# dockerfile: Dockerfile
|
|
# ports:
|
|
# - "8000:8000"
|
|
# volumes:
|
|
# - .:/app # Mount the local directory to the container for development
|
|
# command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
|
# networks:
|
|
# - sg-net
|
|
|
|
|
|
postgres:
|
|
image: postgres
|
|
container_name: sg-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_PASSWORD: guardia123
|
|
POSTGRES_DB: export-tray
|
|
volumes:
|
|
- ./postgres:/var/lib/postgresql/data
|
|
networks:
|
|
- sg-net
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
pgadmin:
|
|
image: dpage/pgadmin4
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: christoph.califice@hotmail.com
|
|
PGADMIN_DEFAULT_PASSWORD: asdf1234
|
|
PGADMIN_LISTEN_PORT: 80
|
|
user: "1002:1003"
|
|
ports:
|
|
- "15432:80"
|
|
volumes:
|
|
- pgadmin:/var/lib/pgadmin
|
|
|
|
networks:
|
|
sg-net: |