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: ...@@ -5,7 +5,7 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
volumes: volumes:
- ./postgres:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
redis: redis:
image: 'redis:latest' image: 'redis:latest'
ports: ports:
...@@ -44,3 +44,5 @@ volumes: ...@@ -44,3 +44,5 @@ volumes:
gems: 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 # 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 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