moved docker to services
This commit is contained in:
26
services/nginx/docker-compose.yaml
Normal file
26
services/nginx/docker-compose.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3'
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
volumes:
|
||||
- ./volumes/nginx_conf:/etc/nginx/conf.d
|
||||
- etc_ssl:/etc/ssl
|
||||
ports:
|
||||
- 443:443
|
||||
- 80:80
|
||||
networks:
|
||||
- public
|
||||
- private
|
||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
nginx-conf.d:
|
||||
etc_ssl:
|
||||
name: nginx_etc_ssl
|
||||
networks:
|
||||
public:
|
||||
name: reverseproxy_public
|
||||
external: true
|
||||
private:
|
||||
name: reverseproxy_private
|
||||
external: true
|
||||
Reference in New Issue
Block a user