Commit e5f98740 authored by Alf Eaton's avatar Alf Eaton
Browse files

Use Docker volume for postgres data

docker volume create --name=pgdata
parent 499f14a3
Pipeline #3769 failed with stage
......@@ -5,7 +5,7 @@ services:
ports:
- "5432:5432"
volumes:
- ./postgres:/var/lib/postgresql/data
- pgdata:/var/lib/postgresql/data
redis:
image: 'redis:latest'
ports:
......@@ -44,3 +44,5 @@ volumes:
gems:
# Flagging this as "external" means it will use the volume named "gems" on the host instead of making a new volume specific to this docker-compose file
external: true
pgdata:
external: true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment