Maybe fix the tests

main
Florent Daigniere 2 years ago
parent b205f406de
commit cef97f78f1

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
IP="$(docker inspect webmail_webmail_1|jq -r '.[0].NetworkSettings.Networks.webmail_default.IPAddress')" IP="$(docker inspect webmail-webmail-1|jq -r '.[0].NetworkSettings.Networks.webmail_webmail.IPAddress')"
MAIN_RETURN_CODE=$(curl -I -so /dev/null -w "%{http_code}" http://$IP/) MAIN_RETURN_CODE=$(curl -I -so /dev/null -w "%{http_code}" http://$IP/)
[[ $MAIN_RETURN_CODE -ne 200 && $MAIN_RETURN_CODE -ne 302 ]] && echo "The default page of snappymail hasn't returned 200 but $MAIN_RETURN_CODE!" >>/dev/stderr && exit 1 [[ $MAIN_RETURN_CODE -ne 200 && $MAIN_RETURN_CODE -ne 302 ]] && echo "The default page of snappymail hasn't returned 200 but $MAIN_RETURN_CODE!" >>/dev/stderr && exit 1

@ -32,6 +32,9 @@ services:
- "127.0.0.1:993:993" - "127.0.0.1:993:993"
volumes: volumes:
- "/mailu/certs:/certs" - "/mailu/certs:/certs"
networks:
- default
- webmail
admin: admin:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-local} image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-local}
@ -105,6 +108,8 @@ services:
- "/mailu/webmail:/data" - "/mailu/webmail:/data"
depends_on: depends_on:
- imap - imap
networks:
- webmail
networks: networks:
@ -114,6 +119,8 @@ networks:
driver: default driver: default
config: config:
- subnet: 192.168.203.0/24 - subnet: 192.168.203.0/24
webmail:
driver: bridge
noinet: noinet:
driver: bridge driver: bridge
internal: true internal: true

Loading…
Cancel
Save