Last active
October 27, 2021 05:30
-
-
Save f-akazawa/b2484d997e0095883b2506bc43c3df3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GeoNetwork | |
# | |
# Access via "http://localhost:8080/geonetwork" (or "http://$(docker-machine ip):8080/geonetwork" if using docker-machine) | |
# | |
# Default user: admin | |
# Default password: admin | |
version: '4.0.5' | |
services: | |
postgis: | |
container_name: postgis | |
image: mdillon/postgis:11-alpine | |
restart: on-failure | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: changeme123 | |
volumes: | |
- 'aogeo-pgdata:/var/lib/postgresql/data/' | |
aogeo-geonetwork: | |
container_name: aogeo-geonetwork | |
image: geonetwork:postgres | |
depends_on: | |
- postgis | |
restart: on-failure | |
ports: | |
- 8080:8080 | |
environment: | |
DATA_DIR: /var/lib/geonetwork | |
POSTGRES_DB_HOST: postgis | |
POSTGRES_DB_USERNAME: postgres | |
POSTGRES_DB_PASSWORD: changeme123 | |
volumes: | |
- type: bind | |
source: './volumes/aogeo-geonetwork' | |
target: '/var/lib/geonetwork' | |
volumes: | |
aogeo-pgdata: | |
external: true |
Create a data storage directory using the following command at the location where this file is placed.
$mkdir -p ./volumes/aogeo-geonetwork
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for 10/29/2021 AOGEO demonstration