version: '3.8' services: go-admin-api: container_name: go-admin image: go-admin:latest privileged: true restart: always ports: - 8000:8000 # Compose allows 10 seconds by default, and this process spends # drain + server + cleanup from extend.shutdown before it exits - 8 out of # the box, more for anyone who configures a drain window. Past the deadline # it is sent SIGKILL and the cleanup callbacks are cut off part-way # through. checksilent's docker-stop-cuts-shutdown-short check compares # this against config/settings.yml. stop_grace_period: 30s volumes: - ./config/:/go-admin-api/config/ - ./static/:/go-admin-api/static/ - ./temp/:/go-admin-api/temp/ networks: - myweb networks: myweb: driver: bridge