40 lines
950 B
YAML
40 lines
950 B
YAML
services:
|
|
db:
|
|
image: postgres:17-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
environment:
|
|
POSTGRES_USER: dev
|
|
POSTGRES_PASSWORD: dev
|
|
POSTGRES_DB: eu_dev
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U dev -d eu_dev"]
|
|
interval: 5s
|
|
retries: 10
|
|
|
|
rustfs:
|
|
image: rustfs/rustfs:1.0.5-glibc
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:9000:9000"
|
|
- "127.0.0.1:9001:9001"
|
|
environment:
|
|
RUSTFS_ACCESS_KEY: devkey
|
|
RUSTFS_SECRET_KEY: devsecret123
|
|
RUSTFS_VOLUMES: /data
|
|
RUSTFS_ADDRESS: "0.0.0.0:9000"
|
|
RUSTFS_CONSOLE_ADDRESS: "0.0.0.0:9001"
|
|
RUSTFS_CONSOLE_ENABLE: "true"
|
|
volumes:
|
|
- rustfs-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://127.0.0.1:9000/health"]
|
|
interval: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
pgdata:
|
|
rustfs-data: |