EDI-NG_server can be easily installed by using the included docker-compose.yml file.
version: '3.1'
services:
pg_edi:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=yourpassword
- POSTGRES_DB=edi
container_name: pg-edi
edi-server:
image: java:8-jdk-alpine
restart: always
depends_on:
- pg_edi
container_name: edi-server
restart: always
ports:
- 8080:8080
volumes:
- ./dockerdemo:/app
working_dir: /app/
command: /app/edi.sh
volumes:
db_data:
git clone
this repository to your servercd
to the directory that has been created- run
docker-compose up -d
- check for errors by running
docker-compose logs -f
The docker compose file works out of the box, but you might want to customise your setup.
If you change your password in the docker-compose.yml file, you'll need to do the same for the spring.datasource.password setting in the dockerdemo/application.properties file.
If you need to have EDI-NG_server listen on a port other than 8080, you can simply change
ports:
- 8080:8080
to
ports:
- <your port>:8080
You will need to update your templates so that the tags point to the public address and port of your EDI-NG_server installation (e.g.: http://my-server:8080/).