Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Forked from DIGIT-C4 / Netbox Plugins
131 commits behind, 3 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
docker-compose.test.yml 2.69 KiB
version: '3.4'
services:
    netbox:
        image: "code.europa.eu:4567/digit-c4/netbox-plugins:${TAG}"
        ports:
            - 8080
        healthcheck:
            start_period: 2s
            retries: 30
        env_file: env/netbox.env
        environment:
            - DB_HOST=postgres_${TAG}
            - REDIS_CACHE_HOST=redis_cache_${TAG}
            - REDIS_HOST=redis_${TAG}
        labels:
            - "traefik.http.routers.netbox-${TAG}.rule=Host(`${TAG}.netbox.ntx.lu`)"
        networks:
            - traefik
        logging:
            driver: "syslog"
            options:
                syslog-address: "tcp://gra1-63cfda8371ef06f3c6bf175c.gra1.logs.ovh.com:6514"
                syslog-format: "rfc5424"
                tag: "netbox"
    netbox-worker:
        image: "code.europa.eu:4567/digit-c4/netbox-plugins:${TAG}"
        env_file: env/netbox.env
        networks:
            - traefik
        logging:
            driver: "syslog"
            options:
                syslog-address: "tcp://gra1-63cfda8371ef06f3c6bf175c.gra1.logs.ovh.com:6514"
                syslog-format: "rfc5424"
                tag: "netbox-worker"
    netbox-housekeeping:
        image: "code.europa.eu:4567/digit-c4/netbox-plugins:${TAG}"
        env_file: env/netbox.env
        networks:
            - traefik
        logging:
            driver: "syslog"
            options:
                syslog-address: "tcp://gra1-63cfda8371ef06f3c6bf175c.gra1.logs.ovh.com:6514"
                syslog-format: "rfc5424"
                tag: "netbox-housekeeping"
    postgres:
        container_name: postgres_${TAG}
        env_file: env/postgres.env
        networks:
            - traefik
        logging:
            driver: "syslog"
            options:
                syslog-address: "tcp://gra1-63cfda8371ef06f3c6bf175c.gra1.logs.ovh.com:6514"
                syslog-format: "rfc5424"
                tag: "netbox-postgres"
    redis:
        container_name: redis_${TAG}
        env_file: env/redis.env
        networks:
            - traefik
        logging:
            driver: "syslog"
            options:
                syslog-address: "tcp://gra1-63cfda8371ef06f3c6bf175c.gra1.logs.ovh.com:6514"
                syslog-format: "rfc5424"
                tag: "netbox-redis"
    redis-cache:
        container_name: redis_cache_${TAG}