version: '3.8' services: crowdtls-db: image: postgres:15.3 container_name: crowdtls-db restart: unless-stopped healthcheck: test: [ "CMD-SHELL", "pg_isready" ] interval: 10s timeout: 5s retries: 5 volumes: - crowdtls-db-data:/var/lib/postgresql/data ports: [ "5432:5432" ] env_file: [ .env ] crowdtls: build: context: . dockerfile: crowdtls.Dockerfile args: - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - CROWDTLS_INTERNAL_WEB_PORT=${CROWDTLS_INTERNAL_WEB_PORT} ports: [ "${CROWDTLS_HOST_WEB_PORT}:${CROWDTLS_INTERNAL_WEB_PORT}" ] image: crowdtls:latest container_name: crowdtls restart: unless-stopped depends_on: crowdtls-db: condition: service_healthy env_file: [ .env ] crowdtls-adminer: image: adminer:latest container_name: crowdtls-adminer build: context: . dockerfile: adminer.Dockerfile restart: unless-stopped ports: - 8001:8080 depends_on: crowdtls-db: condition: service_healthy volumes: crowdtls-db-data: name: crowdtls-db-data