1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-25 22:12:28 +02:00

Add a VERSION variable to avoid modifying the docker-compose file

This commit is contained in:
Pierre Jaury
2016-08-20 16:52:44 +02:00
parent 14ec783ef7
commit 7ac44eabeb
2 changed files with 13 additions and 10 deletions

3
.env
View File

@@ -10,6 +10,9 @@ COMPOSE_PROJECT_NAME=freeposte
# Set this to the path where Freeposte data and configuration is stored # Set this to the path where Freeposte data and configuration is stored
ROOT=/freeposte ROOT=/freeposte
# Freeposte version to run (stable, 1.0, 1.1, etc. or testing)
VERSION=stable
# Set this to enable debugging globally # Set this to enable debugging globally
DEBUG=False DEBUG=False

View File

@@ -4,7 +4,7 @@ services:
http: http:
# build: nginx # build: nginx
image: freeposte/reverse-proxy image: freeposte/reverse-proxy:$VERSION
restart: always restart: always
env_file: .env env_file: .env
ports: ports:
@@ -14,14 +14,14 @@ services:
- "$ROOT/certs:/certs" - "$ROOT/certs:/certs"
redis: redis:
image: redis image: redis:latest
restart: always restart: always
volumes: volumes:
- "$ROOT/redis:/data" - "$ROOT/redis:/data"
imap: imap:
# build: dovecot # build: dovecot
image: freeposte/dovecot image: freeposte/dovecot:$VERSION
restart: always restart: always
env_file: .env env_file: .env
ports: ports:
@@ -35,7 +35,7 @@ services:
smtp: smtp:
# build: postfix # build: postfix
image: freeposte/postfix image: freeposte/postfix:$VERSION
restart: always restart: always
env_file: .env env_file: .env
ports: ports:
@@ -49,7 +49,7 @@ services:
milter: milter:
# build: rmilter # build: rmilter
image: freeposte/rmilter image: freeposte/rmilter:$VERSION
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@@ -59,7 +59,7 @@ services:
antispam: antispam:
# build: rspamd # build: rspamd
image: freeposte/rspamd image: freeposte/rspamd:$VERSION
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@@ -67,7 +67,7 @@ services:
antivirus: antivirus:
# build: clamav # build: clamav
image: freeposte/clamav image: freeposte/clamav:$VERSION
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@@ -75,7 +75,7 @@ services:
admin: admin:
# build: admin # build: admin
image: freeposte/admin image: freeposte/admin:$VERSION
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@@ -85,7 +85,7 @@ services:
webmail: webmail:
# build: "$WEBMAIL" # build: "$WEBMAIL"
image: "freeposte/$WEBMAIL" image: "freeposte/$WEBMAIL:$VERSION"
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes:
@@ -93,7 +93,7 @@ services:
fetchmail: fetchmail:
# build: fetchmail # build: fetchmail
image: freeposte/fetchmail image: freeposte/fetchmail:$VERSION
restart: always restart: always
env_file: .env env_file: .env
volumes: volumes: