Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ services:
container_name: minio
image: minio/minio
environment:
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
ports:
- "9000:9000"
- "9001:9001"
expose:
- "9000"
command: server /data
- "9001"
command: server /data --console-address ":9001"
networks:
- constructive-net

Expand Down
13 changes: 8 additions & 5 deletions pgpm/cli/src/commands/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PostgreSQL Options:
--shm-size <size> Shared memory size for container (default: 2g)

Additional Services:
--minio Include MinIO S3-compatible object storage (port 9000)
--minio Include MinIO S3-compatible object storage (API: 9000, Console: 9001)

General Options:
--help, -h Show this help message
Expand Down Expand Up @@ -74,12 +74,15 @@ const ADDITIONAL_SERVICES: Record<string, ServiceDefinition> = {
minio: {
name: 'minio',
image: 'minio/minio',
ports: [{ host: 9000, container: 9000 }],
ports: [
{ host: 9000, container: 9000 },
{ host: 9001, container: 9001 },
],
env: {
MINIO_ACCESS_KEY: 'minioadmin',
MINIO_SECRET_KEY: 'minioadmin',
MINIO_ROOT_USER: 'minioadmin',
MINIO_ROOT_PASSWORD: 'minioadmin',
},
command: ['server', '/data'],
command: ['server', '/data', '--console-address', ':9001'],
volumes: [{ name: 'minio-data', containerPath: '/data' }],
},
};
Expand Down
Loading