File size: 569 Bytes
5edf1f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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