version: '3' services: wncloud-web: container_name: wncloud-web image: wncloud:0.0.1 build: . ports: - "0.0.0.0:8080:80" command: sh -c "alembic upgrade head && uvicorn app:app --host 0.0.0.0 --port 80" depends_on: wncloud-mysql: condition: service_healthy wncloud-mysql: container_name: wncloud-mysql image: mysql command: --default-authentication-plugin=mysql_native_password restart: always environment: MYSQL_ROOT_PASSWORD: C3nvsoWP5Nhe ports: - "0.0.0.0:3306:3306" healthcheck: test: ["CMD-SHELL", "mysql -hlocalhost -uroot -pC3nvsoWP5Nhe -e 'SELECT 1;'"] interval: 5s timeout: 5s retries: 10 start_period: 5s