Added run script for travis

master
Ionut Filip 6 years ago
parent 0067d97f26
commit ebe90fc447

@ -9,3 +9,5 @@ env:
script: script:
- docker-compose -f tests/build.yml -p Mailu build - docker-compose -f tests/build.yml -p Mailu build
- tests/compose/test-script.sh

@ -12,7 +12,7 @@
ROOT=/mailu ROOT=/mailu
# Mailu version to run (1.0, 1.1, etc. or master) # Mailu version to run (1.0, 1.1, etc. or master)
VERSION=master #VERSION=master
# Set to a randomly generated 16 bytes string # Set to a randomly generated 16 bytes string
SECRET_KEY=ChangeMeChangeMe SECRET_KEY=ChangeMeChangeMe

@ -4,8 +4,8 @@ services:
front: front:
image: mailu/nginx:$VERSION image: mailu/nginx:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
ports: ports:
- "$BIND_ADDRESS4:80:80" - "$BIND_ADDRESS4:80:80"
- "$BIND_ADDRESS4:443:443" - "$BIND_ADDRESS4:443:443"
@ -30,14 +30,14 @@ services:
redis: redis:
image: redis:alpine image: redis:alpine
restart: no restart: 'no'
volumes: volumes:
- "$ROOT/redis:/data" - "$ROOT/redis:/data"
imap: imap:
image: mailu/dovecot:$VERSION image: mailu/dovecot:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/data:/data" - "$ROOT/data:/data"
- "$ROOT/mail:/mail" - "$ROOT/mail:/mail"
@ -47,8 +47,8 @@ services:
smtp: smtp:
image: mailu/postfix:$VERSION image: mailu/postfix:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/data:/data" - "$ROOT/data:/data"
- "$ROOT/overrides:/overrides" - "$ROOT/overrides:/overrides"
@ -57,8 +57,8 @@ services:
antispam: antispam:
image: mailu/rspamd:$VERSION image: mailu/rspamd:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/filter:/var/lib/rspamd" - "$ROOT/filter:/var/lib/rspamd"
- "$ROOT/dkim:/dkim" - "$ROOT/dkim:/dkim"
@ -68,22 +68,22 @@ services:
antivirus: antivirus:
image: mailu/$ANTIVIRUS:$VERSION image: mailu/$ANTIVIRUS:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/filter:/data" - "$ROOT/filter:/data"
webdav: webdav:
image: mailu/$WEBDAV:$VERSION image: mailu/$WEBDAV:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/dav:/data" - "$ROOT/dav:/data"
admin: admin:
image: mailu/admin:$VERSION image: mailu/admin:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/data:/data" - "$ROOT/data:/data"
- "$ROOT/dkim:/dkim" - "$ROOT/dkim:/dkim"
@ -93,8 +93,8 @@ services:
webmail: webmail:
image: "mailu/$WEBMAIL:$VERSION" image: "mailu/$WEBMAIL:$VERSION"
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/webmail:/data" - "$ROOT/webmail:/data"
depends_on: depends_on:
@ -102,7 +102,7 @@ services:
fetchmail: fetchmail:
image: mailu/fetchmail:$VERSION image: mailu/fetchmail:$VERSION
restart: no restart: 'no'
env_file: $ENV_FILE env_file: $PWD/.env
volumes: volumes:
- "$ROOT/data:/data" - "$ROOT/data:/data"

@ -0,0 +1,5 @@
#!/bin/bash
for file in ../*.env ; do
cp $file .env
docker-compose -f ../run.yml up -d
done
Loading…
Cancel
Save