Skip to content

Commit

Permalink
chore: selfhost compose backward compatibility (#9098)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Dec 11, 2024
1 parent 216e09e commit eee0ed4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/deployment/self-host/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
env_file:
- .env
environment:
- NODE_ENV=production
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine}
restart: unless-stopped

Expand All @@ -43,6 +44,9 @@ services:
container_name: redis
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped

postgres:
Expand All @@ -61,7 +65,7 @@ services:
healthcheck:
test:
['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"]
interval: 1m
start_interval: 10s
start_period: 1m
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped

0 comments on commit eee0ed4

Please sign in to comment.