-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improved storybook and docker compose stack
- Loading branch information
Showing
6 changed files
with
182 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,55 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json | ||
|
||
version: '3.8' | ||
|
||
services: | ||
pgsql: | ||
image: postgres:16-alpine | ||
container_name: remix_pgsql | ||
hostname: postgres | ||
restart: unless-stopped | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- pg_data:/var/lib/postgresql/data | ||
# Optional: only use when using custom query for preparation | ||
# - ./initialize.sql:/docker-entrypoint-initdb.d/initialize.sql | ||
- pgsql_data:/var/lib/postgresql/data | ||
- ./scripts/pgsql-multidb.sh:/docker-entrypoint-initdb.d/multidb.sh | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: securedb | ||
POSTGRES_DB: remixdb | ||
POSTGRES_MULTIPLE_DATABASES: remixdb,extradb | ||
command: ['postgres', '-c', 'wal_level=logical'] | ||
healthcheck: | ||
test: ['CMD-SHELL', 'pg_isready -U postgres -d remixdb'] | ||
interval: 30s | ||
timeout: 20s | ||
retries: 3 | ||
|
||
# keydb: | ||
# # drop-in replacement for Redis | ||
# image: eqalpha/keydb:latest | ||
# container_name: remix_keydb | ||
# restart: always | ||
# ports: | ||
# - '6379:6379' | ||
# volumes: | ||
# - 'keydb_data:/data' | ||
# command: 'keydb-server /etc/keydb/redis.conf --server-threads 2' | ||
|
||
pgweb: | ||
image: ghcr.io/sosedoff/pgweb:latest | ||
image: sosedoff/pgweb:latest | ||
container_name: remix_pgweb | ||
restart: always | ||
ports: | ||
- '54321:8081' | ||
- 54321:8081 | ||
environment: | ||
PGWEB_DATABASE_URL: 'postgres://postgres:postgres@pgsql:5432/remixdb?sslmode=disable' | ||
PGWEB_DATABASE_URL: 'postgres://postgres:securedb@pgsql:5432/remixdb?sslmode=disable' | ||
depends_on: | ||
- pgsql | ||
pgsql: | ||
condition: service_started | ||
|
||
mailpit: | ||
image: axllent/mailpit:v1.10 | ||
image: axllent/mailpit:latest | ||
container_name: remix_mailpit | ||
restart: unless-stopped | ||
volumes: | ||
- mailpit_data:/data | ||
ports: | ||
- '1025:1025' # port the SMTP server should be accessible on | ||
- '8025:8025' # port the web interface should be accessible on | ||
- 1025:1025 # port the SMTP server should be accessible on | ||
- 8025:8025 # port the web interface should be accessible on | ||
environment: | ||
# https://github.com/axllent/mailpit/wiki/Runtime-options | ||
TZ: 'Asia/Jakarta' | ||
# MP_UI_AUTH: 'user1:password1 user2:password2' | ||
TZ: Asia/Jakarta | ||
|
||
volumes: | ||
pg_data: | ||
pgsql_data: | ||
driver: local | ||
# keydb_data: | ||
# driver: local | ||
mailpit_data: | ||
driver: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.