Updated docker-compose
This commit is contained in:
parent
1d8df135d9
commit
0cd283172e
|
@ -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
|
||||
- POSTGRES_PASSWORD=${REDMINE_DB_PASSWORD}
|
||||
- POSTGRES_USER=redmine
|
||||
- POSTGRES_DB=redmine
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == vch2
|
||||
volumes:
|
||||
db:
|
Loading…
Reference in New Issue