services: homepage: image: nginx:alpine restart: always container_name: homepage user: {{ users['homepage'] }}:{{ users['homepage'] }} ports: - 127.0.0.1:{{ ports['homepage'] }}:80 volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./index:/mnt/index