Appendix E: Example Docker Compose File

Here is an example of a Docker compose file:

version: '3.1'
services:
    db:
        image: "postgres:9.6"
        environment:
            - POSTGRES_PASSWORD
            - POSTGRES_USER=kloudless
            - POSTGRES_DB=kloudless
        restart: always
        redis:
            image: "redis:latest"
        kloudless:
        image: "kloudless-enterprise:1.23.5"
        command: "/usr/local/bin/docker_entry"
        cap_add:
            - SYS_PTRACE
        depends_on:
            - db
            - redis
        ports:
            - "8080:8080"
            - "8443:8443"
            - "80:80"
            - "443:443"
        environment:
            KLOUDLESS_CONFIG: |
                redis: redis://redis:6372/0
                db:
                    host: db
                    port: 5432
                    name: 'klou -dless'
                    user: 'kloudless'
                    password: ${POSTGRES_PASSWORD}
                hostname: ${KLOUDLESS_HOSTNAME}