Klip: Kutt like it's perfect. An easy to use self-hosted URL shortener. https://uwu.ryukyu/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
767 B

version: "3"
services:
kutt:
build: .
container_name: kutt
depends_on:
- postgres
- redis
command: ["./wait-for-it.sh", "postgres:5432", "--", "npm", "start"]
ports:
- "3000:3000"
env_file:
- .env
environment:
DB_HOST: postgres
DB_NAME: kutt
DB_USER: user
DB_PASSWORD: pass
networks:
- kutt-network
redis:
image: redis:alpine
container_name: redis
networks:
- kutt-network
postgres:
image: postgres:12-alpine
container_name: postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: kutt
ports:
- "54323:5432"
networks:
- kutt-network
networks:
kutt-network:
driver: "bridge"