| 12345678910111213141516171819 |
- services:
- squidstats:
- build: .
- container_name: squidstats_app
- ports:
- - "5000:5000"
- env_file:
- - .env
- volumes:
- # Keep the source mounted for the same development workflow as the image.
- - .:/app
- - ./logs:/logs
- # The host directories can be overridden with SQUID_CONFIG_DIR and
- # SQUID_LOG_DIR when the host uses a different Squid layout.
- - ${SQUID_CONFIG_DIR:-/etc/squid}:/etc/squid:rw
- - ${SQUID_LOG_DIR:-/var/log/squid}:/var/log/squid:ro
- # Persist SQLite data outside the container.
- - ${DATABASE_DIR:-./SquidStats}:/opt/SquidStats:rw
- restart: unless-stopped
|