Comments (4)
What version of docker are you running?
from container.
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.
Seems like this was added to buildkit in 2019, which explains why it doesn't work in a 2018 version of docker.
from container.
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)
- Dependency Dashboard
- future of docker deployment HOT 2
- Postgres upgrade instructions missing HOT 3
- problem with 1.9.1 image HOT 1
- git not found HOT 1
- MariaDB sample not working with MariaDB 10.6 HOT 19
- Database cannot be reached. Try 1 of 30 HOT 14
- Updating MariaDB to utf8mb4 character set failed
- exec /usr/local/bin/docker-entrypoint.sh: no such file or directory
- Old containers removal prevents pinning HOT 4
- Add OCI annotations to images HOT 4
- BuildKit/buildx required for building docker images (with ansible) HOT 8
- Use of FQIN in Dockerfile FROM instructions HOT 2
- Can't Login After CodiMd Upgrade HOT 1
- oAuth2 not working HOT 7
- Consider hardcoding GID alongside UID for image user?
- npm permission error HOT 2
- Improve Container size HOT 3
- database connection error - permission denied for user hedgedoc HOT 2
- Update spam on the release channel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container.