mirror of
https://github.com/clowzed/sero
synced 2026-03-14 12:45:50 +01:00
* Added docker-compose for dev. Added dev build build and push job for dockerhub * Moved cors layer to check if /api now is not guarded * Added logging for error in response * Removed too strict validation rules for credentials * fix: x-subdmain was overwritten on correct request. Updated nginx-template and nginx now waits for server * proxy-fix: New nginx config as the previous one failed with subdomain * archive-fix: Remove skipping first component in path of entry. Zip archive should not containt root folder. * assets-fix: Remove root folder inside zips to pass tests. The root dir is not skipped now due to previous commit * tests-fix: enable logging to see error message in gh actions. Lokal tests work fine * fmt: for tests * tests-fix: disable logging to see error message in gh actions. That was gh issue * fmt: remove unused import * openapi-client: add build and publih with gh actions * fix-deploy: nginx now waits for server in dev also * fix-deploy: publsh to pypi
69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
database:
|
|
image: postgres:16
|
|
user: postgres
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_DB=sero
|
|
- POSTGRES_PASSWORD=1234
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
|
proxy:
|
|
image: nginx:alpine3.18-slim
|
|
environment:
|
|
- DOLLAR=$
|
|
- SERVER_PORT=8080
|
|
- SERVER=server
|
|
# Edit this
|
|
- DOMAIN=
|
|
- ZONE=
|
|
# End of edit
|
|
volumes:
|
|
- ./nginx-templates:/etc/nginx/templates
|
|
ports:
|
|
- 443:443
|
|
- 80:80
|
|
links:
|
|
- server
|
|
depends_on:
|
|
- server
|
|
|
|
server:
|
|
image: clowzed/sero:dev-unstable
|
|
build: .
|
|
depends_on:
|
|
database:
|
|
condition: service_healthy
|
|
volumes:
|
|
- server-files:/app/sites-uploads
|
|
ports:
|
|
- 8080:8080
|
|
environment:
|
|
- DATABASE_URL=postgresql://postgres:1234@database/sero
|
|
- PORT=8080
|
|
# You can edit this section
|
|
# Empty means no limits
|
|
- MAX_USERS=1
|
|
- MAX_SITES_PER_USER=100
|
|
- MAX_BODY_LIMIT_SIZE=10000000 # 10mb
|
|
- RUST_LOG=none,sero=trace
|
|
- JWT_SECRET=mysuperstrongjwtscret
|
|
# end of section
|
|
- JWT_TTL_SECONDS=120
|
|
- SQLX_LOGGING=true
|
|
- UPLOAD_FOLDER=./sites-uploads
|
|
|
|
|
|
volumes:
|
|
server-files:
|
|
pgdata:
|