From 0cd283172ec5d18140e1a7bb20c6af2cd014f528 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 4 Dec 2020 11:59:10 +0100 Subject: [PATCH] Updated docker-compose --- redmine/docker-compose.yml | 47 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/redmine/docker-compose.yml b/redmine/docker-compose.yml index dd71fcc..1b490e3 100644 --- a/redmine/docker-compose.yml +++ b/redmine/docker-compose.yml @@ -1,32 +1,31 @@ -version: '3.1' - +version: '3.7' services: - - redmine: - image: vn-redmine + main: + image: registry.verdnatura.es/vn-redmine restart: always ports: - - 3000:3000 -# volumes: -# - /mnt/storage/redmine/plugins:/usr/src/redmine/plugins -# - /mnt/storage/redmine/themes:/usr/src/redmine/public/themes -# - /mnt/storage/redmine/data:/usr/src/redmine/files + - 3000 + volumes: + - /mnt/storage/redmine/data:/usr/src/redmine/files environment: - REDMINE_DB_MYSQL: db - REDMINE_DB_PASSWORD: aeb69b9dUX$$. - REDMINE_SECRET_KEY_BASE: rd1954521 + REDMINE_DB_POSTGRES: db + REDMINE_DB_USERNAME: redmine + REDMINE_DB_PASSWORD: ${REDMINE_DB_PASSWORD} + REDMINE_SECRET_KEY_BASE: ${REDMINE_SECRET_KEY_BASE} REDMINE_PLUGINS_MIGRATE: "true" db: - image: mariadb + image: postgres restart: always -# volumes: -# - /mnt/storage/redmine/db:/var/lib/mysql + volumes: + - db:/var/lib/postgresql/data environment: - - MYSQL_ROOT_PASSWORD=aeb69b9dUX$$. - - MYSQL_PASSWORD=aeb69b9dUX$$. - - MYSQL_DATABASE=redmine - - MYSQL_USER=redmine -# deploy: -# placement: -# constraints: -# - node.hostname == vch1 \ No newline at end of file + - POSTGRES_PASSWORD=${REDMINE_DB_PASSWORD} + - POSTGRES_USER=redmine + - POSTGRES_DB=redmine + deploy: + replicas: 1 + placement: + constraints: + - node.hostname == vch2 +volumes: + db: \ No newline at end of file