changed nginx and code-server to docker compose on host

This commit is contained in:
2024-05-26 11:09:56 +01:00
parent bb5b58ecf0
commit 467be18fc4
3 changed files with 9 additions and 10 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ docker/mosquitto
lib/* lib/*
lib2/* lib2/*
docker/zigbee2mqtt/volumes/* docker/zigbee2mqtt/volumes/*
*.env

View File

@@ -15,8 +15,7 @@ services:
- code-server_config:/config - code-server_config:/config
- code-server_root:/root - code-server_root:/root
- has_config:/mnt/has_config - has_config:/mnt/has_config
- nginx_conf:/config/workspace/docker/nginx/volumes/nginx_conf - ./../nginx/volumes/nginx_conf:/config/workspace/host/repos/homesrv01.dev.lan/docker/nginx/volumes/nginx_conf
- ssl_data:/mnt/ssl_data
- mosquitto_config:/mnt/mosquitto_config - mosquitto_config:/mnt/mosquitto_config
- zigbee2mqtt_data:/mnt/zigbee2mqtt_data - zigbee2mqtt_data:/mnt/zigbee2mqtt_data
- hostfs:/mnt/hostfs - hostfs:/mnt/hostfs
@@ -37,12 +36,6 @@ volumes:
external: true external: true
hostfs: hostfs:
external: true external: true
nginx_conf:
name: reverseproxy_nginx-conf.d
external: true
ssl_data:
name: reverseproxy_etc_ssl
external: true
mosquitto_config: mosquitto_config:
external: true external: true
networks: networks:

View File

@@ -3,7 +3,7 @@ services:
nginx: nginx:
image: nginx image: nginx
volumes: volumes:
- nginx-conf.d:/etc/nginx/conf.d - ./volumes/nginx_conf:/etc/nginx/conf.d
- etc_ssl:/etc/ssl - etc_ssl:/etc/ssl
ports: ports:
- 443:443 - 443:443
@@ -16,6 +16,11 @@ services:
volumes: volumes:
nginx-conf.d: nginx-conf.d:
etc_ssl: etc_ssl:
name: nginx_etc_ssl
networks: networks:
public: public:
private: name: reverseproxy_public
external: true
private:
name: reverseproxy_private
external: true