services: redis: image: redis ports: - 6379:6379 volumes: - ttnx-redis-data:/data db: image: mcr.microsoft.com/mssql/server:2022-latest ports: - 1433:1433 environment: - ACCEPT_EULA=Y - MSSQL_SA_PASSWORD= healthcheck: test: ["CMD", "/opt/mssql-tools18/bin/sqlcmd", "-U", "sa", "-P", "", "-No", "-Q", "select 1"] interval: 5s timeout: 30s retries: 3 volumes: - ttnx-db-data:/var/opt/mssql - ttnx-sample:/usr/local/timetracker/sample web: image: densocreate/timetracker: environment: - TTNX_DB_TYPE=sqlserver - TTNX_DB_SERVER=db - TTNX_DB_PORT=1433 - TTNX_DB_USER=sa - TTNX_DB_PASSWORD= - TTNX_REDIS_GLOBALCACHE=redis:6379 - TTNX_REDIS_HANGFIRE=redis:6379 - TTNX_REDIS_BACKGROUNDJOB=redis:6379 volumes: - ./logs:/usr/local/timetracker/Logs - ./appsettings.json:/usr/local/timetracker/appsettings.json - ttnx-sample:/usr/local/timetracker/sample depends_on: redis: condition: service_started db: condition: service_healthy nginx: image: nginx:latest ports: - 80:80 volumes: - ./nginx.conf:/etc/nginx/nginx.conf depends_on: - web networks: default: ipam: config: - subnet: 192.168.0.0/16 volumes: ttnx-redis-data: ttnx-db-data: ttnx-sample: