dev: change port number in dev db/redis containers to avoid conflicts with exising instances

This commit is contained in:
naskya 2024-01-19 00:28:34 +09:00
parent 85dfc11ad8
commit 881fd5f5d8
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ services:
redis: redis:
image: docker.io/redis:7-alpine image: docker.io/redis:7-alpine
ports: ports:
- "6379:6379" - "26379:6379"
db: db:
image: docker.io/groonga/pgroonga:latest-alpine-16 image: docker.io/groonga/pgroonga:latest-alpine-16
@ -13,6 +13,6 @@ services:
- "POSTGRES_USER=firefish" - "POSTGRES_USER=firefish"
- "POSTGRES_DB=firefish_db" - "POSTGRES_DB=firefish_db"
ports: ports:
- "5432:5432" - "25432:5432"
volumes: volumes:
- "../neko/install.sql:/docker-entrypoint-initdb.d/install.sql:ro" - "../neko/install.sql:/docker-entrypoint-initdb.d/install.sql:ro"

View file

@ -33,13 +33,13 @@
port: 3000 port: 3000
db: db:
host: localhost host: localhost
port: 5432 port: 25432
db: firefish_db db: firefish_db
user: firefish user: firefish
pass: password pass: password
redis: redis:
host: localhost host: localhost
port: 6379 port: 26379
``` ```
コンテナを作り直すと簡単にデータベースを初期化できます。 コンテナを作り直すと簡単にデータベースを初期化できます。