version: '3.3' services: db: image: mysql:5.7 env_file: - mapknitter.env volumes: - ../mysql:/var/lib/mysql - ../dump:/docker-entrypoint-initdb.d web: build: context: . dockerfile: ./dockerfiles/${RAILS_ENV:-production} ulimits: core: 0 command: [ "sh", "/app/start.sh" ] image: mapknitter-dev env_file: - mapknitter.env volumes: - .:/app - bundle_cache:/usr/local/bundle - yarn_cache:/app/node_modules/ ports: - ${PORT:-3000}:${PORT:-3000} depends_on: - db volumes: bundle_cache: yarn_cache: