Skip to content

Instantly share code, notes, and snippets.

@yuksbg
Created October 14, 2023 12:08
Show Gist options
  • Save yuksbg/9756dcbc0c0670a2df72392e3fce8f34 to your computer and use it in GitHub Desktop.
Save yuksbg/9756dcbc0c0670a2df72392e3fce8f34 to your computer and use it in GitHub Desktop.
t
version: "3"
services:
kutt:
image: kutt/kutt
depends_on:
- postgres
- redis
command: ["./wait-for-it.sh", "app-db-production-20231014115640778500000001.cslw5nvms5h6.eu-central-1.rds.amazonaws.com:5432", "--", "npm", "start"]
ports:
- "3000:3000"
env_file:
- .env
environment:
DB_HOST: app-db-production-20231014115640778500000001.cslw5nvms5h6.eu-central-1.rds.amazonaws.com
DB_NAME: kutt
DB_USER: myUser
DB_PASSWORD: myPassw0rd
REDIS_HOST: redis
redis:
image: redis:6.0-alpine
volumes:
- redis_data:/data
postgres:
image: postgres:12-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: kutt
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
redis_data:
postgres_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment