version: "3" services: server: build: context: . dockerfile: Dockerfile image: apache2 container_name: webserver environment: - USER_UID=1001 - USER_GID=1001 networks: - files volumes: #- ./public_html:/usr/local/apache2/htdocs - /data:/usr/local/apache2/htdocs - ./my-httpd.conf:/usr/local/apache2/conf/httpd.conf ports: - "8080:80" networks: files: external: name: file-network