services: blinko-website: image: blinkospace/blinko:latest container_name: blinko-${IP}-${PORT} environment: NODE_ENV: production # NEXTAUTH_URL: http://localhost:1111 # NEXT_PUBLIC_BASE_URL: http://localhost:1111 NEXTAUTH_SECRET: ${KEY} DATABASE_URL: postgresql://postgres:${DB_PASS}@postgres:5432/postgres depends_on: postgres: condition: service_healthy volumes: - ${DATA_DIR}/app:/app/.blinko restart: always logging: options: max-size: "10m" max-file: "3" ports: - ${IP}:${PORT}:1111 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:1111/"] interval: 30s timeout: 10s retries: 5 start_period: 30s postgres: image: postgres:14 restart: always volumes: - ${DATA_DIR}/bdd:/var/lib/postgresql/data:rw environment: POSTGRES_DB: postgres POSTGRES_USER: postgres POSTGRES_PASSWORD: ${DB_PASS} TZ: ${TIMEZONE} healthcheck: test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"] interval: 5s timeout: 10s retries: 5