Created
September 15, 2025 21:43
-
-
Save craigds/0d48051aabe94e9bb20b8e50e3540494 to your computer and use it in GitHub Desktop.
happy-server compose file
This file contains hidden or 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
| 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