Spaces:
Paused
Paused
| services: | |
| fsb-run: | |
| # Build the image from the Dockerfile in the current directory | |
| build: . | |
| container_name: fsb | |
| restart: always | |
| volumes: | |
| - ./logs:/app/logs | |
| - ./fsb.env:/app/fsb.env | |
| ports: | |
| - "${PORT:-8038}:${PORT:-8038}" | |
| env_file: | |
| - path: ./fsb.env | |
| required: true | |
| # This new entrypoint runs as root to fix permissions, | |
| # then switches to 'appuser' to run the application. | |
| entrypoint: | |
| - sh | |
| - -c | |
| - | | |
| chown -R appuser:appuser /app/logs | |
| exec gosu appuser /app/fsb run |