Skip to content

Commit

Permalink
Update docker compose file to use named volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardboehme committed Aug 16, 2024
1 parent f444604 commit 8936f77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
Gemfile.lock
docker-compose.yml
/test/database.yml
/data/
/log/*
!/log/.keep
10 changes: 6 additions & 4 deletions docker-compose.yml.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
postgresql:
image: postgres:latest
Expand All @@ -10,7 +8,7 @@ services:
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data

mysql:
image: mariadb
Expand All @@ -21,4 +19,8 @@ services:
ports:
- "3306:3306"
volumes:
- ./data/mysql:/var/lib/mysql
- mysql_data:/var/lib/mysql

volumes:
postgres_data:
mysql_data:

0 comments on commit 8936f77

Please sign in to comment.