sha256:fd542e83221584f8bf8a993f095eb359a2aa44f6f374e32d2e183b80f54dbb25
Last pushed
9 days by ayaannnn
Type
Compose
Manifest digest
sha256:fd542e83221584f8bf8a993f095eb359a2aa44f6f374e32d2e183b80f54dbb25
networks:
frontend:
backend:
volumes:
pg-data:
services:
postgres:
image: postgres:alpine
environment:
POSTGRES_DB : ${POSTGRES_DB}
POSTGRES_USER : ${POSTGRES_USER}
POSTGRES_PASSWORD : ${POSTGRES_PASSWORD}
volumes:
- pg-data:/var/lib/postgresql/
networks:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL" , "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
start_period: 7s
redis:
image: redis
networks:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 5s
timeout: 5s
retries: 5
start_period: 7s
migrate:
# build: ./migrate
image: ayaannnn/linkshrink-migrate:1.0
networks:
- backend
environment:
POSTGRES_DB : ${POSTGRES_DB}
POSTGRES_USER : ${POSTGRES_USER}
PGPASSWORD : ${POSTGRES_PASSWORD}
restart: "no"
depends_on:
postgres:
condition: service_healthy
worker:
# build: ./worker
image: ayaannnn/linkshrink-worker:1.0
networks:
backend:
environment:
POSTGRES_DB : ${POSTGRES_DB}
POSTGRES_USER : ${POSTGRES_USER}
PGPASSWORD : ${POSTGRES_PASSWORD}
POSTGRES_PORT : 5432
POSTGRES_HOST: postgres
REDIS_HOST: redis
REDIS_PORT: 6379
restart: unless-stopped
stop_grace_period: 10s
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
migrate:
condition: service_completed_successfully
api:
# build: ./api
image: ayaannnn/linkshrink-api:1.0
networks:
frontend:
backend:
restart: unless-stopped
environment:
POSTGRES_DB : ${POSTGRES_DB}
POSTGRES_USER : ${POSTGRES_USER}
PGPASSWORD : ${POSTGRES_PASSWORD}
POSTGRES_PORT : 5432
POSTGRES_HOST: postgres
REDIS_HOST: redis
REDIS_PORT: 6379
PORT: 3000
depends_on:
migrate:
condition: service_completed_successfully
postgres:
condition: service_healthy
worker:
condition: service_healthy
stop_grace_period: 10s
nginx:
# build: ./nginx
image: ayaannnn/linkshrink-web:1.0
networks:
frontend:
ports:
- 8080:80
depends_on:
api:
condition: service_healthy
restart: unless-stopped
docker compose -f oci://ayaannnn/linkshrink-compose:1.1 upUse the above command to pull and run the Compose file. Learn more.
The PostgreSQL object-relational database system provides reliability and data integrity.
Pulls
1B+
Stars
15032
Last Updated
5 days
Redis is the world’s fastest data platform for caching, vector search, and NoSQL databases.
Pulls
1B+
Stars
13624
Last Updated
5 days