a few more tweaks to get it working
This commit is contained in:
parent
2874433cf1
commit
d9f56fb85a
2 changed files with 4 additions and 2 deletions
|
@ -42,7 +42,7 @@ cp .env.defaults .env
|
||||||
export DOMAIN=yourdomain.com
|
export DOMAIN=yourdomain.com
|
||||||
echo DOMAIN=$DOMAIN >> .env
|
echo DOMAIN=$DOMAIN >> .env
|
||||||
echo ALLOWED_DOMAINS=$DOMAIN >> .env
|
echo ALLOWED_DOMAINS=$DOMAIN >> .env
|
||||||
echo SITES='"'$DOMAIN=guppe:8085'"' >> .env
|
echo SITES=$DOMAIN=guppe:8085 >> .env
|
||||||
docker swarm init --advertise-addr 127.0.0.1
|
docker swarm init --advertise-addr 127.0.0.1
|
||||||
# all on one node for simple setup or split these onto different nodes for a distributed swarm
|
# all on one node for simple setup or split these onto different nodes for a distributed swarm
|
||||||
docker node update --label-add web=true --label-add database=true --label-add delivery=true $(hostname)
|
docker node update --label-add web=true --label-add database=true --label-add delivery=true $(hostname)
|
||||||
|
|
|
@ -13,6 +13,8 @@ services:
|
||||||
- 443:443
|
- 443:443
|
||||||
volumes:
|
volumes:
|
||||||
- ssl_data:/etc/resty-auto-ssl
|
- ssl_data:/etc/resty-auto-ssl
|
||||||
|
depends_on:
|
||||||
|
- guppe
|
||||||
env_file: '.env'
|
env_file: '.env'
|
||||||
guppe:
|
guppe:
|
||||||
image: datatitian/guppe
|
image: datatitian/guppe
|
||||||
|
@ -34,7 +36,7 @@ services:
|
||||||
options:
|
options:
|
||||||
max-size: '10m'
|
max-size: '10m'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
test: ["CMD", "curl", "-f", "http://localhost:8085"]
|
||||||
interval: 1m30s
|
interval: 1m30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
Loading…
Reference in a new issue