Skip to content

Instantly share code, notes, and snippets.

@craigds
Created September 15, 2025 21:43
Show Gist options
  • Select an option

  • Save craigds/0d48051aabe94e9bb20b8e50e3540494 to your computer and use it in GitHub Desktop.

Select an option

Save craigds/0d48051aabe94e9bb20b8e50e3540494 to your computer and use it in GitHub Desktop.
happy-server compose file
services:
happy-server:
image: happy-server:latest
build:
context: .
dockerfile: Dockerfile
ports:
- "3005:3005"
restart: unless-stopped
environment:
- NODE_ENV=production
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/happy-server
- REDIS_URL=redis://redis:6379
- SEED=awefon23098n23f0932nf0932nf32oifn23oifne32w
- PORT=3005
depends_on:
- postgres
- redis
postgres:
image: postgres:15
environment:
- POSTGRES_DB=happy-server
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- "5432"
redis:
image: redis:7-alpine
expose:
- "6379"
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment