mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 17:28:53 +02:00
feat(dev): add jotty and postgres-test services to dev.compose.yml
This commit is contained in:
@@ -54,6 +54,33 @@ services:
|
|||||||
- USERS=user:$$2a$$10$$UdLYoJ5lgPsC0RKqYH/jMua7zIn0g9kPqWmhYayJYLaZQ/FTmH2/u # user:password
|
- USERS=user:$$2a$$10$$UdLYoJ5lgPsC0RKqYH/jMua7zIn0g9kPqWmhYayJYLaZQ/FTmH2/u # user:password
|
||||||
labels:
|
labels:
|
||||||
proxy.tinyauth.port: "3000"
|
proxy.tinyauth.port: "3000"
|
||||||
|
jotty: # issue #182
|
||||||
|
image: ghcr.io/fccview/jotty:latest
|
||||||
|
container_name: jotty
|
||||||
|
user: "1000:1000"
|
||||||
|
tmpfs:
|
||||||
|
- /app/data:rw,uid=1000,gid=1000
|
||||||
|
- /app/config:rw,uid=1000,gid=1000
|
||||||
|
- /app/.next/cache:rw,uid=1000,gid=1000
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
labels:
|
||||||
|
proxy.aliases: "jotty.my.app"
|
||||||
|
postgres-test:
|
||||||
|
image: postgres:18-alpine
|
||||||
|
container_name: postgres-test
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=postgres
|
||||||
|
- POSTGRES_PASSWORD=postgres
|
||||||
|
- POSTGRES_DB=postgres
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
start_period: 30s
|
||||||
h2c_test_server:
|
h2c_test_server:
|
||||||
build:
|
build:
|
||||||
context: cmd/h2c_test_server
|
context: cmd/h2c_test_server
|
||||||
|
|||||||
Reference in New Issue
Block a user