diff --git a/postgressql/docker-compose.yml b/postgressql/docker-compose.yml new file mode 100644 index 0000000..1150c83 --- /dev/null +++ b/postgressql/docker-compose.yml @@ -0,0 +1,19 @@ +services: + db: + container_name: PostgreSQL + image: postgres:17.6 + mem_limit: 256m + cpu_shares: 768 + healthcheck: + test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres"] + environment: + POSTGRES_PASSWORD: 1qaz2wsx@ + POSTGRES_DB: db + PUID: 1026 + PGID: 100 + volumes: + - /container/postgresql:/var/lib/postgresql/data:rw + ports: + - 5432:5432 + restart: always + network_mode: "bridge"