This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangjianlong-galaxy-auto-d…/parcels/roles/services/galaxy-hos-nginx/templates/docker-compose.yml.j2
2021-09-08 11:33:00 +08:00

15 lines
498 B
Django/Jinja

version: '3'
services:
nginx:
image: {{ hos_nginx_image_name }}:{{ hos_nginx_image_tag_name }}
container_name: {{ hos_nginx_image_container_name }}
restart: always
ports:
- 80:80
volumes:
- {{ install_path }}/{{ hos_nginx_volume_path }}/logs:/usr/local/nginx/logs
- {{ install_path }}/{{ hos_nginx_volume_path }}/nginx.conf:/usr/local/nginx/conf/nginx.conf
working_dir: /etc/nginx
command: /etc/nginx/nginx -g 'daemon off;'
network_mode: "host"