docker-compose.yml 648 B

12345678910111213141516171819
  1. services:
  2. squidstats:
  3. build: .
  4. container_name: squidstats_app
  5. ports:
  6. - "5000:5000"
  7. env_file:
  8. - .env
  9. volumes:
  10. # Keep the source mounted for the same development workflow as the image.
  11. - .:/app
  12. - ./logs:/logs
  13. # The host directories can be overridden with SQUID_CONFIG_DIR and
  14. # SQUID_LOG_DIR when the host uses a different Squid layout.
  15. - ${SQUID_CONFIG_DIR:-/etc/squid}:/etc/squid:rw
  16. - ${SQUID_LOG_DIR:-/var/log/squid}:/var/log/squid:ro
  17. # Persist SQLite data outside the container.
  18. - ${DATABASE_DIR:-./SquidStats}:/opt/SquidStats:rw
  19. restart: unless-stopped