migration to rustfs
This commit is contained in:
+35
-30
@@ -1,35 +1,40 @@
|
||||
services:
|
||||
eu:
|
||||
image: 172.17.0.1:5000/eu:latest
|
||||
db:
|
||||
image: postgres:17-alpine
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:5432:5432"
|
||||
environment:
|
||||
PUBLIC_URL: ${PUBLIC_URL}
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
|
||||
KOTOSOFT_ID_API_PUBLIC_URL: ${KOTOSOFT_ID_API_PUBLIC_URL}
|
||||
KOTOSOFT_ID_API_URL: ${KOTOSOFT_ID_API_URL}
|
||||
KOTOSOFT_CLIENT_ID: ${KOTOSOFT_CLIENT_ID}
|
||||
KOTOSOFT_CLIENT_SECRET: ${KOTOSOFT_CLIENT_SECRET}
|
||||
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
SESSION_MAX_AGE: 604800
|
||||
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
|
||||
|
||||
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
||||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
||||
MINIO_PUBLIC_URL: ${MINIO_PUBLIC_URL}
|
||||
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
|
||||
|
||||
VIRTUAL_HOST: ${DOMAIN}
|
||||
VIRTUAL_PORT: 3000
|
||||
LETSENCRYPT_HOST: ${DOMAIN}
|
||||
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
|
||||
expose:
|
||||
- "3000"
|
||||
networks:
|
||||
- proxy
|
||||
- eu_net
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
eu_net:
|
||||
external: true
|
||||
volumes:
|
||||
pgdata:
|
||||
rustfs-data:
|
||||
Reference in New Issue
Block a user