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
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
.DS_Store
.idea
docker/data-source-tools/storage
docker/data-source-tools/storage/*

34 changes: 16 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,28 @@ cd ./devop-tools/docker/data-source-services && docker compose up --build -d
* Run `set COMPOSE_CONVERT_WINDOWS_PATHS=1` in your CMD or PowerShell terminal
* Optionally, [read](https://github.com/docker/compose/issues/4303#issuecomment-379563170) this bug report.

### RustFS
_For running an S3 service locally._

* Edit the `/etc/hosts` file on your system and make a reference for `127.0.0.1 s3.docker`
* To create buckets or view their files, you can access the console at: http://localhost:9001
* Username: rustfsadmin
* Password: rustfsadmin
* Modify the project's `.env` as follows:
* `FILESYSTEM_DRIVER=s3`
* `AWS_ACCESS_KEY_ID=rustfsadmin`
* `AWS_SECRET_ACCESS_KEY=rustfsadmin`
* `AWS_DEFAULT_REGION=us-east-1`
* `AWS_BUCKET=[project-bucket-name]`
* `AWS_ENDPOINT=http://s3.docker:9000`
* `AWS_USE_PATH_STYLE_ENDPOINT=true`

---

## Data Source Tools
* Optionally included is the following tools:
* phpMyAdmin
* Mailpit
* MinIO

```bash
cd ./devop-tools/docker/data-source-tools && docker compose up --build -d
Expand All @@ -63,23 +78,6 @@ _For mimicking an email inbox (ala mailtrap) for local usage._
* `MAIL_PASSWORD=null`
* `MAIL_ENCRYPTION=null`

### MinIO
_For running an S3 service locally._

* Edit the `/etc/hosts` file on your system and make a reference for `127.0.0.1 s3.docker`
* Open the admin console http://s3.docker:10001 and login.
* username: root
* password: password
* Create an appropriate bucket for each project as needed.
* Modify the project's `.env` as follows:
* `FILESYSTEM_DRIVER=s3`
* `AWS_ACCESS_KEY_ID=root`
* `AWS_SECRET_ACCESS_KEY=password`
* `AWS_DEFAULT_REGION=us-east-1`
* `AWS_BUCKET=[project-bucket-name]`
* `AWS_ENDPOINT=http://s3.docker:10000`
* `AWS_USE_PATH_STYLE_ENDPOINT=true`

---

## Scripts
Expand Down
27 changes: 27 additions & 0 deletions docker/data-source-services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,33 @@ services:
- MYSQL_PASSWORD=mariadb_pass
networks:
- st-internal
rustfs:
container_name: sourcetoad_rustfs
image: rustfs/rustfs:1.0.0-alpha.79
ports:
- "9000:9000"
- "9001:9001"
environment:
- RUSTFS_VOLUMES=/data
- RUSTFS_ADDRESS=0.0.0.0:9000
- RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001
- RUSTFS_CONSOLE_ENABLE=true
- RUSTFS_EXTERNAL_ADDRESS=:9000
- RUSTFS_CORS_ALLOWED_ORIGINS=*
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
- RUSTFS_LOG_LEVEL=info
volumes:
- ./storage/rustfs:/data
networks:
st-internal:
aliases:
- s3.docker
healthcheck:
test: ["CMD", "sh", "-c", "curl -f http://127.0.0.1:9000/health && curl -f http://127.0.0.1:9001/health"]
interval: 5m
timeout: 10s
retries: 3
start_period: 40s
networks:
st-internal:
external: true
Expand Down
2 changes: 2 additions & 0 deletions docker/data-source-services/storage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
15 changes: 0 additions & 15 deletions docker/data-source-tools/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,6 @@ services:
MP_MAX_MESSAGES: 5000
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
minio:
hostname: s3.docker
image: minio/minio:latest
container_name: sourcetoad_minio
ports:
- "10000:10000"
- "10001:10001"
volumes:
- ./storage/data:/data
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=password
command: server /data/ --address :10000 --console-address :10001
networks:
- st-internal
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: sourcetoad_phpmyadmin
Expand Down