Marc Jansen, terrestris GmbH & Co. KG
FOSSGIS 2019, Dresden, 15.03.2019
Dockerfile
docker run hello-world
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
[…]
Dockerfile
FROM node:10
WORKDIR app
COPY node-example /app
RUN npm install
RUN npm run build
CMD npm run serve
EXPOSE 8080
docker-compose.yml
version: '2'
services:
fossgis-ol:
build: .
ports:
- 12345:8080
fossgis-geoserver:
image: terrestris/geoserver:2.15.0
ports:
- 8888:8080
volumes:
- ./fossgis-geoserver/geoserver_data:/opt/geoserver_data/:Z
- ./fossgis-geoserver/additional_libs:/opt/additional_libs/:Z
environment:
- EXTRA_JAVA_OPTS=-Xms1g -Xmx2g
depends_on:
- fossgis-postgis
fossgis-geonetwork:
image: geonetwork
ports:
- 8081:8080
depends_on:
- fossgis-postgis
fossgis-postgis:
image: mdillon/postgis:10-alpine
ports:
- 7777:5432
environment:
POSTGRES_USER: geoserver
POSTGRES_PASSWORD: geoserver
volumes:
- ./fossgis-postgis/postgresql_data:/var/lib/postgresql/data:Z
Diese Folien sind unter CC BY-SA veröffentlicht.