From eeb8aefa3eb268af2610d4dae8b23ffe9e05832d Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 14 Feb 2024 11:39:29 +0100 Subject: [PATCH] Add Postgres service to docker-compose file A new Postgres service has been added to the docker-compose file, with its respective environmental variables and volume. This service uses postgres:13.3-alpine image and is accessible via the port 5432. --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 96707d8ad..d76a08a4b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,6 +38,18 @@ services: ACCEPT_EULA: "Y" volumes: - c:\data\docker\sqlserver2019:/var/opt/mssql/data + + postgres: + image: postgres:13.3-alpine + container_name: elsa3-postgres + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgrespw + POSTGRES_DB: elsa + ports: + - "5432:5432" + volumes: + - pgdata:/var/lib/postgresql/data mongodb: image: mongo:latest @@ -110,5 +122,6 @@ networks: volumes: mongodb_data: + pgdata: elasticsearch-data: driver: local \ No newline at end of file