version: "3.3" services: apache: build: context: ./apache dockerfile: Dockerfile ports: - 81:80 phpfpm: build: context: ./phpfpm dockerfile: Dockerfile volumes: - ./src:/var/www/html ports: - 9000:9000 database: image: mysql:latest volumes: - dbvolume:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: secret MYSQL_DATABASE: todos cacheserver: image: memcached volumes: dbvolume: