sha256:88c33e376ebee227829dfb08269ee38a093cc30e1a6a4ff176e138c1f481f304
Last pushed
23 days by arhamsayyed
Type
Compose
Manifest digest
sha256:88c33e376ebee227829dfb08269ee38a093cc30e1a6a4ff176e138c1f481f304
volumes:
pg_data:
networks:
backend:
frontend:
services:
postgres:
image: postgres:alpine
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
PGPASSWORD: ${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: 5s
redis:
image: redis:alpine
networks:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
migrate:
image: arhamsayyed/linkshrink-migrate:1.0
# build: ./migrate
networks:
- backend
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
PGPASSWORD: ${POSTGRES_PASSWORD}
restart: "no"
depends_on:
postgres:
condition: service_healthy
worker:
image: arhamsayyed/linkshrink-worker:1.0
# build: ./worker
networks:
- backend
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
PGPASSWORD: ${POSTGRES_PASSWORD}
REDIS_HOST: redis
REDIS_PORT: 6379
depends_on:
postgres:
condition: service_healthy
migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
restart: unless-stopped
stop_grace_period: 10s
api:
image: arhamsayyed/linkshrink-api:1.0
# build: ./api
networks:
- frontend
- backend
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
PGPASSWORD: ${POSTGRES_PASSWORD}
REDIS_HOST: redis
REDIS_PORT: 6379
depends_on:
migrate:
condition: service_completed_successfully
postgres:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
stop_grace_period: 10s
nginx:
image: arhamsayyed/linkshrink-web:1.0
# build: ./nginx
networks:
- frontend
ports:
- "8080:80"
depends_on:
api:
condition: service_healthy
restart: unless-stoppeddocker compose -f oci://arhamsayyed/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
15040
Last Updated
about 14 hours
Redis is the world’s fastest data platform for caching, vector search, and NoSQL databases.
Pulls
1B+
Stars
13627
Last Updated
about 10 hours