version: '3.8' services: postgres: image: postgres:15 environment: POSTGRES_USER: libretime POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: libretime volumes: - postgres_data:/var/lib/postgresql/data rabbitmq: image: rabbitmq:3.13-alpine environment: RABBITMQ_DEFAULT_VHOST: /libretime RABBITMQ_DEFAULT_USER: libretime RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS} api: image: ghcr.io/libretime/libretime-api:${LIBRETIME_VERSION:-4.5} environment: - LIBRETIME_GENERAL_PUBLIC_URL=${LIBRETIME_GENERAL_PUBLIC_URL:-http://localhost:8080} - LIBRETIME_CONFIG_FROM_ENV=true volumes: - libretime_storage:/srv/libretime depends_on: - postgres - rabbitmq legacy: image: ghcr.io/libretime/libretime-legacy:${LIBRETIME_VERSION:-4.5} environment: - LIBRETIME_CONFIG_FROM_ENV=true volumes: - libretime_storage:/srv/libretime depends_on: - postgres - rabbitmq nginx: image: ghcr.io/libretime/libretime-nginx:${LIBRETIME_VERSION:-4.5} ports: - "8080:8080" volumes: - libretime_storage:/srv/libretime:ro - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - legacy - api volumes: postgres_data: libretime_storage: