version: '3.8' services: # Main Astro SSR Application web: build: context: . dockerfile: Dockerfile container_name: 365devnet-web restart: unless-stopped ports: - "3000" environment: - NODE_ENV=production - PORT=3000 - ENABLE_SSR_CSP=1 # SMTP Settings - Loaded from .env file or set here # Uncomment and set these if not using .env file: # - SMTP_HOST=smtp.your-server.com # - SMTP_PORT=587 # - SMTP_USER=your-email@domain.com # - SMTP_PASS=your-password # - FROM_EMAIL=support@365devnet.eu # Optional: Custom "from" address # - ADMIN_EMAIL=admin@365devnet.eu # - WEBSITE_NAME=365DevNet # Other settings # - GEMINI_API_KEY=${GEMINI_API_KEY} env_file: - .env # SMTP settings will be loaded from this file volumes: # Mount logs directory if you want to persist logs - ./logs:/app/logs networks: - devnet healthcheck: test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"] interval: 30s timeout: 10s retries: 3 start_period: 40s networks: devnet: external: true name: 365DevNet # Optional: Add volumes for persistent data volumes: logs: