version: "3" services: db: image: docker.io/postgres:15-alpine restart: always environment: POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - db:/var/lib/postgresql/data adminer: image: docker.io/adminer:4-standalone restart: always ports: - 8080:8080 depends_on: - db redis: image: docker.io/redis:7-alpine restart: always volumes: - redis:/data redis-commander: image: rediscommander/redis-commander:latest restart: always environment: REDIS_HOSTS: local:redis:6379 ports: - 8081:8081 depends_on: - redis blog: image: git.dergrimm.net/dergrimm/blog:latest build: context: ./backend restart: always command: worker environment: BACKEND_BIND_URL: 0.0.0.0:80 BACKEND_DB_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_USER} BACKEND_REDIS_URL: redis://redis BACKEND_CACHE_TTL: 3600 volumes: - ./blog:/blog ports: - 80:80 depends_on: - db - redis volumes: db: redis: