Created
March 1, 2022 06:02
-
-
Save i40sys/9b6bd7afb6c411d8719149017e4170c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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