services:
    web:
        build:
            context: .
            dockerfile: Dockerfile
        restart: always
        ports:
            - "3000:3000"
        environment:
            NODE_ENV: production
            DATABASE_URL: mysql://username:password@mysql-host:3306/database_name
            NEXTAUTH_URL: https://your-domain.com
            NEXTAUTH_SECRET: your-nextauth-secret
        volumes:
            - ./uploads:/app/public/uploads
        networks:
            - app-network

networks:
    app-network:
        driver: bridge
