version: '3' services: app: build: context: . dockerfile: ./python.selenium.Dockerfile command: python main.py depends_on: - selenium selenium: image: selenium/standalone-chrome platform: linux/amd64 # for mac m chips volumes: - /dev/shm:/dev/shm # solves low mem in container. but may occur low speed of work - chrome_profiles:/tmp/chrome # to cache profile(sessions, logins...) ports: - 4444:4444 volumes: chrome_profiles: