Git Product home page Git Product logo

Comments (4)

SISheogorath avatar SISheogorath commented on August 17, 2024

What version of docker are you running?

from container.

zeigerpuppy avatar zeigerpuppy commented on August 17, 2024

Docker version 17.12.0-ce, build c97c6d6
docker-compose version 1.23.0, build c8524dc1
Debian9

It's a little bit of an unusual configuration in that we also use kata-containers as the runtime, but this usually has no effect on the parsing of dockerfile variables. The major substantive change it makes is in the explicit networking.

I have included my docker-compose.yml (sanitised) below for reference

# Hedgedoc
version: '3'
services:

  hedgedocpostgres:
    # Don't upgrade PostgreSQL by simply changing the version number
    # You need to migrate the Database to the new PostgreSQL version
    image: postgres:9.6-alpine
    container_name: hedgedoc-postgres
    expose:
      - "5432"
    networks:
      docker2:
        ipv4_address: 192.12.18.27
    volumes:
      - postgresql:/var/lib/postgresql/data
      - /docker_config/dns/resolv.conf:/etc/resolv.conf
    environment:
      - POSTGRES_USER=hedgedoc
      - POSTGRES_PASSWORD=hedgedocpass
      - POSTGRES_DB=hedgedoc
    restart: always


  hedgedoc:
    # Uncomment the following section to build the image yourself:
    build:
      context: ../HedgeDoc-docker-container
      dockerfile: debian/Dockerfile
      args:
        VERSION: master
        HEDGEDOC_REPOSITORY: https://github.com/hedgedoc/hedgedoc.git
        # UID: 10000
        # we have had to hardcode UID in Dockerfile currently - see https://github.com/hedgedoc/container/issues/144
    #image: quay.io/hedgedoc/hedgedoc:1.7.1
    container_name: hedgedoc
    depends_on:
      - hedgedocpostgres
    volumes:
      - uploads:/hedgedoc/public/uploads
      - ${PWD}/themes/reveal.js:/hedgedoc/public/build/reveal.js
      - ${PWD}/themes/css:/hedgedoc/public/css
      - /zpool2/docker_config/dns/resolv.conf:/etc/resolv.conf
    expose:
      - "3000"
    networks:
      docker2:
        ipv4_address:  192.12.18.25
    environment:
      - CMD_DB_URL=postgres://hedgedoc:hedgedocpass@hedgedoc-postgres:5432/hedgedoc
      - CMD_DOMAIN=hedgedoc.mydomain.net
      - CMD_PROTOCOL_USESSL=true
      - CMD_USECDN=false
      - CMD_URL_ADDPORT=false
      - CMD_ALLOW_FREEURL=true
# AUTH Options
      - CMD_ALLOW_EMAIL_REGISTER=false
      - CMD_EMAIL=true
      - CMD_GITLAB_SCOPE=api
      - CMD_GITLAB_BASEURL=https://gitlab.myserver.net
      - CMD_GITLAB_CLIENTID=********
      - CMD_GITLAB_CLIENTSECRET=**********
# Anonymous options
      - CMD_ALLOW_ANONYMOUS=false
      - CMD_ALLOW_ANONYMOUS_EDITS=true
      - CMD_IMAGE_UPLOAD_TYPE=filesystem
    restart: always

networks:
  docker2:
    external:
      name: docker2

# named volumes
volumes:
    # volume mounted on bindmount
    postgresql:
      driver: local
      driver_opts:
        type: 'none'
        device: '${PWD}/volumes/postgresql'
        o: 'bind'

    uploads:
      driver: local
      driver_opts:
        type: 'none'
        device: '${PWD}/volumes/uploads'
        o: 'bind'

from container.

SISheogorath avatar SISheogorath commented on August 17, 2024

Seems like this was added to buildkit in 2019, which explains why it doesn't work in a 2018 version of docker.

from container.

zeigerpuppy avatar zeigerpuppy commented on August 17, 2024

that's as subtle a message as ever that it's time for me to upgrade the docker version! Thanks

from container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.