fix: connect with networks
This commit is contained in:
parent
c44c5f6c85
commit
a7b24998f7
10
compose.yml
10
compose.yml
@ -11,6 +11,9 @@ services:
|
|||||||
target: /etc/nginx/conf.d/default.conf
|
target: /etc/nginx/conf.d/default.conf
|
||||||
volumes:
|
volumes:
|
||||||
- nginx-data:/usr/share/nginx/website
|
- nginx-data:/usr/share/nginx/website
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
- internal
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
@ -30,6 +33,8 @@ services:
|
|||||||
- WHD_HOOK_SCRIPTS=/root/scripts
|
- WHD_HOOK_SCRIPTS=/root/scripts
|
||||||
entrypoint: /root/scripts/deploy.sh
|
entrypoint: /root/scripts/deploy.sh
|
||||||
command: webhookd
|
command: webhookd
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
configs:
|
configs:
|
||||||
- source: webhookd_script
|
- source: webhookd_script
|
||||||
target: /root/scripts/deploy.sh
|
target: /root/scripts/deploy.sh
|
||||||
@ -37,6 +42,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- nginx-data:/usr/share/nginx/website
|
- nginx-data:/usr/share/nginx/website
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
nginx-data:
|
nginx-data:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user