Add dotfiles.

This commit is contained in:
Kaitlyn Parkhurst 2021-06-08 22:22:00 -07:00
parent 36c24a5119
commit bda3a5c314
3 changed files with 57 additions and 0 deletions

23
.dex.yaml Normal file
View file

@ -0,0 +1,23 @@
- name: db
desc: "Control Devel DB Only"
children:
- name: start
desc: "Start devel db on localhost via docker."
shell:
- docker-compose --project-directory ./DB -f ./.docker/database.yml up
- name: stop
desc: "Stop devel db on localhost via docker."
shell:
- docker-compose --project-directory ./DB -f ./.docker/database.yml down
- name: status
desc: "Show status of devel db."
shell:
- docker-compose --project-directory ./DB -f ./.docker/database.yml ps
- name: reset
desc: "Wipe devel db data."
shell:
- docker-compose --project-directory ./DB -f ./.docker/database.yml down -v
- name: shell
desc: "Grab a shell to psql"
shell:
- docker exec -ti meshmage-db psql -U meshmage meshmage

31
.docker/database.yml Normal file
View file

@ -0,0 +1,31 @@
version: '3'
services:
database:
image: postgres:11
container_name: meshmage-db
ports:
- 127.0.0.1:5432:5432
environment:
- POSTGRES_PASSWORD=meshmage
- POSTGRES_USER=meshmage
- POSTGRES_DB=meshmage
volumes:
- ./etc/schema.sql:/docker-entrypoint-initdb.d/000_schema.sql:ro
- mesh_database:/var/lib/postgresql/data
minion-database:
image: postgres:11
container_name: meshmage-minion-db
ports:
- 127.0.0.1:5433:5432
environment:
- POSTGRES_PASSWORD=minion
- POSTGRES_USER=minion
- POSTGRES_DB=minion
volumes:
- minion_database:/var/lib/postgresql/data
volumes:
mesh_database:
minion_database:

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
certs/
keys/
Web/meshmage.yml