Skip to content
Snippets Groups Projects
deploy.md 1.26 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Deploy Ecolyo-Agent application
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    This section will allow you to properly deploy Ecolyo-Agent in a production environment
    
    
    To deploy ecolyo-agent application in a production environment, you need the following files :
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    
    ### docker-compose.yml
    
    
    Example [here](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/backoffice-client/-/blob/dev/docker-compose.yml)
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    
    ### site.conf
    
    
    Find exemples [here](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/backoffice-client/-/tree/dev/nginx)
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
    In this file, add the variables as described in the env-template file in the git repository
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    
    To use OAuth2 login ask your client ID and client secret
    
    Here is the config to run the app
    
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    ```env
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    NODE_TLS_REJECT_UNAUTHORIZED = '0'
    HTTPS=true
    SSL_CRT_FILE=cert.pem
    SSL_KEY_FILE=key.pem
    ```
    
    
    Complete with this example [here](https://forge.grandlyon.com/web-et-numerique/factory/llle_project/backoffice-server/-/blob/dev/.env.template)
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    ## Start the application
    
    Then start the app by launching the command :
    
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    ```sh
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    docker-compose up -d
    ```
    
    To check if the application starts successfully, launch the command
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    
    ```sh
    
    Rémi PAILHAREY's avatar
    Rémi PAILHAREY committed
    docker logs backoffice-client_backend_1
    ```
    
    You should obtain the following messages:
    
    > --- Server is starting ---  
    > Token signing key set