mirror of
https://github.com/lukevella/rallly-selfhosted.git
synced 2025-12-10 02:42:49 +01:00
32 lines
619 B
YAML
32 lines
619 B
YAML
version: "3"
|
|
services:
|
|
rallly_db:
|
|
image: postgres:14.2
|
|
restart: always
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=db
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
rallly:
|
|
image: lukevella/rallly:latest
|
|
restart: always
|
|
depends_on:
|
|
- rallly_db
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db
|
|
env_file:
|
|
- config.env
|
|
|
|
volumes:
|
|
db-data:
|
|
driver: local
|