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.
This commit is contained in:
parent
c0e8eaf45c
commit
eeb8aefa3e
|
|
@ -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
|
||||
Loading…
Reference in a new issue