Skip to content

Instantly share code, notes, and snippets.

@i40sys
Created March 1, 2022 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i40sys/9b6bd7afb6c411d8719149017e4170c4 to your computer and use it in GitHub Desktop.
Save i40sys/9b6bd7afb6c411d8719149017e4170c4 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
volumes:
- ./etc:/etc/nginx:ro
- ./logs:/var/logs/nginx
- ./html:/usr/share/nginx/html:ro
- /etc/localtime:/etc/localtime:ro
environment:
- TZ="CET"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ports:
- 80:80
extra_hosts:
# pon aquí la IP de tu host
host: 10.2.0.54
networks:
- i40sys
networks:
i40sys:
external:
name: i40sys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment