container: enable pgroonga extension automatically
This commit is contained in:
parent
43708ead38
commit
127487dc38
4 changed files with 4 additions and 5 deletions
|
@ -10,8 +10,3 @@ down:
|
||||||
.PHONY: up
|
.PHONY: up
|
||||||
up:
|
up:
|
||||||
podman-compose up --detach
|
podman-compose up --detach
|
||||||
sleep 2
|
|
||||||
podman-compose exec db psql \
|
|
||||||
--user=firefish \
|
|
||||||
--dbname=firefish_db \
|
|
||||||
--command='CREATE EXTENSION pgroonga;'
|
|
||||||
|
|
|
@ -14,3 +14,5 @@ services:
|
||||||
- "POSTGRES_DB=firefish_db"
|
- "POSTGRES_DB=firefish_db"
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- "../neko/pgroonga.sql:/docker-entrypoint-initdb.d/pgroonga.sql:ro"
|
||||||
|
|
|
@ -40,6 +40,7 @@ services:
|
||||||
- .config/docker.env
|
- .config/docker.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/postgresql/data
|
- ./db:/var/lib/postgresql/data
|
||||||
|
- ./neko/pgroonga.sql:/docker-entrypoint-initdb.d/pgroonga.sql:ro
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
calcnet:
|
calcnet:
|
||||||
|
|
1
neko/pgroonga.sql
Normal file
1
neko/pgroonga.sql
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CREATE EXTENSION pgroonga;
|
Loading…
Reference in a new issue