File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ - name : db
2+ desc : " Control Devel DB Only"
3+ children :
4+ - name : start
5+ desc : " Start devel db on localhost via docker."
6+ shell :
7+ - docker-compose --project-directory ./DB -f ./.docker/database.yml up
8+ - name : stop
9+ desc : " Stop devel db on localhost via docker."
10+ shell :
11+ - docker-compose --project-directory ./DB -f ./.docker/database.yml down
12+ - name : status
13+ desc : " Show status of devel db."
14+ shell :
15+ - docker-compose --project-directory ./DB -f ./.docker/database.yml ps
16+ - name : reset
17+ desc : " Wipe devel db data."
18+ shell :
19+ - docker-compose --project-directory ./DB -f ./.docker/database.yml down -v
20+ - name : shell
21+ desc : " Grab a shell to psql"
22+ shell :
23+ - docker exec -ti blogdb-db psql -U blogdb blogdb
Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ services :
4+ database :
5+ image : postgres:11
6+ container_name : blogdb-db
7+ ports :
8+ - 127.0.0.1:5432:5432
9+ environment :
10+ - POSTGRES_PASSWORD=blogdb
11+ - POSTGRES_USER=blogdb
12+ - POSTGRES_DB=blogdb
13+ volumes :
14+ - ./etc/schema.sql:/docker-entrypoint-initdb.d/000_schema.sql:ro
15+ - blogdb_database:/var/lib/postgresql/data
16+ # minion-database:
17+ # image: postgres:11
18+ # container_name: meshmage-minion-db
19+ # ports:
20+ # - 127.0.0.1:5433:5432
21+ # environment:
22+ # - POSTGRES_PASSWORD=minion
23+ # - POSTGRES_USER=minion
24+ # - POSTGRES_DB=minion
25+ # volumes:
26+ # - minion_database:/var/lib/postgresql/data
27+
28+
29+ volumes :
30+ blogdb_database :
31+ # minion_database:
You can’t perform that action at this time.
0 commit comments