24 lines
424 B
YAML
24 lines
424 B
YAML
version: "3"
|
|
|
|
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: apache2
|
|
container_name: webserver
|
|
environment:
|
|
- USER_UID=1001
|
|
- USER_GID=1001
|
|
restart: always
|
|
networks:
|
|
- files
|
|
volumes:
|
|
- ./public_html:/usr/local/apache2/htdocs
|
|
- /mnt/nfs/media:/usr/local/apache2/htdocs/files
|
|
|
|
networks:
|
|
files:
|
|
external:
|
|
name: file-network
|