version: '3' services: mysql: build: context: ./mysql/ dockerfile: dockerFile environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} MYSQL_DATABASE: ${MYSQL_DATABASE} MYSQL_USER: ${MYSQL_USER} MYSQL_PASSWORD: ${MYSQL_PASSWORD} restart: always volumes: - './mysql/db:/var/lib/mysql' api: build: context: ./laravel/ dockerfile: dockerFile ports: - 8000:8000 environment: DB_HOST: "mysql" DB_PORT: "3306" DB_DATABASE: "database" DB_USERNAME: "root" DB_PASSWORD: "root" WAIT_HOSTS: mysql:3306 WAIT_HOSTS_TIMEOUT: 300 WAIT_SLEEP_INTERVAL: 10 WAIT_HOST_CONNECT_TIMEOUT: 10 volumes: - './laravel/my-project:/app' command: sh -c "/wait && /bin/bash /app/onLaunch.sh" depends_on: - mysql dbmanager: build: context: ./adminer/ dockerfile: dockerFile restart: always ports: - 8080:8080 front: build: context: ./node/ dockerfile: dockerFile ports: - 8081:8081 volumes: - ./node/vue:/var/www/html/app tty: true