tgf / docker-compose.yaml
Mohammad Shahid
first push
5edf1f8
raw
history blame contribute delete
569 Bytes
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