services: redis: image: redis:7-alpine container_name: peipei-redis ports: - "36379:6379" command: ["redis-server", "--save", "", "--appendonly", "no"] restart: unless-stopped networks: - peipei-network peipei-backend: image: docker-registry.julyhaven.com/peipei/backend:latest container_name: peipei-backend platform: linux/amd64 depends_on: - redis ports: - "7003:7002" environment: - SPRING_PROFILES_ACTIVE=test - JAVA_OPTS=-Xms2g -Xmx2g volumes: - ./log:/app/log # Mount log directory to host restart: unless-stopped healthcheck: # Maybe use actuator later test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7002/api/health", ] interval: 30s timeout: 10s retries: 3 start_period: 60s networks: - peipei-network networks: peipei-network: driver: bridge # volumes: # mysql_data: