Skip to content

Commit

Permalink
Use separate db repository for fork 6
Browse files Browse the repository at this point in the history
Because I'm tired of reinstalling when switching between Fork CMS 5 and 6
  • Loading branch information
carakas committed May 11, 2021
1 parent 0abfa76 commit c7be020
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ services:
- "80:80"
- "443:443"
depends_on:
- db
- db6
env_file: ./var/docker/.env
volumes:
- .:/var/www/html:cached
- ./src/Frontend/Files:/var/www/html/src/Frontend/Files:cached
- fork-cms-var:/var/www/html/var
- fork-cms6-var:/var/www/html/var

db:
db6:
image: "mysql:5.7"
restart: always
ports:
Expand All @@ -32,10 +32,10 @@ services:
# Uncomment the next line if you want to keep mysql in a data container
# - db-data:/var/lib/mysql:rw
# By default, use a bind-mounted host directory instead. It's harder to accidentally lose all your db data!
- ./var/docker/db/data:/var/lib/mysql:rw
- ./var/docker/db/data6:/var/lib/mysql:rw
- ./tests/data/test_db.sql:/test_db.sql:ro
- ./var/docker/db/scripts:/docker-entrypoint-initdb.d:ro

volumes:
fork-cms-var: {}
db-data: {}
fork-cms6-var: {}
db6-data: {}
3 changes: 2 additions & 1 deletion var/docker/db/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
data/
*
!.gitignore
!scripts/*

0 comments on commit c7be020

Please sign in to comment.