Newer
Older
sisyphe-go / docker-compose.yml
version: '3.7'
services:
    go:
        environment:
            http_proxy: ${http_proxy}
            https_proxy: ${https_proxy}
            ELASTIC_URL: ${ELASTIC_URL}
            ELASTIC_PORT: ${ELASTIC_PORT}
            KIBANA_PORT: ${KIBANA_PORT}
        build:
            context: .
            args:
                - http_proxy
                - https_proxy
                - no_proxy
                - ELASTIC_URL
                - ELASTIC_PORT
                - KIBANA_PORT
        tty: true
        init: true
        user: $UID:$GID
        stdin_open: true
        volumes:
            - $WORK:/work/
            - $CORPUS_RESOURCES:/corpus-resources/
            - $SISYPHE_OUT:/app/out/
            - $SISYPHE_LOG:/var/log
            - /etc/group:/etc/group:ro
            - /etc/passwd:/etc/passwd:ro
            - /etc/shadow:/etc/shadow:ro
            - $HOME:$HOME

    nginx:
      image: nginx:1.21.6
      volumes:
        - "/work:/usr/share/nginx/html/work:ro"
        - "./nginx.conf.d/nginx.conf:/etc/nginx/nginx.conf"
      ports:
        - 40000:80