first commit

This commit is contained in:
Tomas Dvorak
2026-04-10 12:04:09 +02:00
commit 3cb40adb23
203 changed files with 40226 additions and 0 deletions
+116
View File
@@ -0,0 +1,116 @@
services:
auth:
image: node:22-alpine
working_dir: /workspace
command: sh -lc "npm run dev -w apps/backend/auth-service"
environment:
APP_ENV: development
FRONTEND_URL: http://localhost:5173
AUTH_URL: http://localhost:43001
AUTH_PORT: 3001
DATABASE_URL: postgres://productier:productier@postgres:5432/productier?sslmode=disable
BETTER_AUTH_SECRET: replace-me-with-a-long-random-secret
ports:
- "43001:3001"
volumes:
- .:/workspace
depends_on:
- postgres
api:
build:
context: ./apps/backend
dockerfile: Dockerfile
image: productier-api-dev
environment:
APP_ENV: development
API_PORT: 8080
DATABASE_URL: postgres://productier:productier@postgres:5432/productier?sslmode=disable
AUTH_SERVICE_URL: http://auth:3001
CORS_ALLOW_ORIGINS: http://localhost:5173,http://127.0.0.1:5173,http://localhost:43001,http://127.0.0.1:43001
MAIL_ENCRYPTION_KEY: replace-me-with-a-dedicated-mail-secret
FILE_STORAGE_PROVIDER: local
FILE_STORAGE_DIR: /tmp/uploads
ports:
- "48080:8080"
depends_on:
postgres:
condition: service_started
auth:
condition: service_started
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: productier
POSTGRES_USER: productier
POSTGRES_PASSWORD: productier
volumes:
- postgres-data:/var/lib/postgresql/data
rustfs:
profiles: ["extras"]
image: rustfs/rustfs@sha256:0725587f6fcca83c1898f321424327d6e6da5e01ea20382905dd258ed5af3be4
restart: unless-stopped
environment:
RUSTFS_VOLUMES: /data/rustfs
RUSTFS_ADDRESS: 0.0.0.0:9000
RUSTFS_CONSOLE_ADDRESS: 0.0.0.0:9001
RUSTFS_CONSOLE_ENABLE: "true"
RUSTFS_ACCESS_KEY: rustfsadmin
RUSTFS_SECRET_KEY: rustfsadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- rustfs-data:/data
healthcheck:
test: ["CMD", "sh", "-c", "wget -q -O - http://127.0.0.1:9000/health >/dev/null"]
interval: 15s
timeout: 5s
retries: 20
rustfs-init:
profiles: ["extras"]
image: amazon/aws-cli:2.27.42
restart: "no"
depends_on:
rustfs:
condition: service_healthy
environment:
AWS_ACCESS_KEY_ID: rustfsadmin
AWS_SECRET_ACCESS_KEY: rustfsadmin
AWS_DEFAULT_REGION: us-east-1
entrypoint:
- /bin/sh
- -lc
- |
set -eu
endpoint="http://rustfs:9000"
until aws --endpoint-url "$$endpoint" s3api list-buckets >/dev/null 2>&1; do
sleep 1
done
aws --endpoint-url "$$endpoint" s3api head-bucket --bucket productier >/dev/null 2>&1 || \
aws --endpoint-url "$$endpoint" s3api create-bucket --bucket productier
greenmail:
profiles: ["extras"]
image: greenmail/standalone:2.1.8
restart: unless-stopped
environment:
GREENMAIL_OPTS: >-
-Dgreenmail.setup.test.all
-Dgreenmail.users=test1:pwd1@localhost
-Dgreenmail.users.login=email
-Dgreenmail.hostname=0.0.0.0
ports:
- "3025:3025"
- "3143:3143"
- "3465:3465"
- "3993:3993"
- "8081:8080"
volumes:
postgres-data:
rustfs-data: