Merge pull request #933 from infosiftr/redmine-stack

Convert "redmine" to use "docker stack deploy"
This commit is contained in:
yosifkit 2017-06-12 09:46:31 -07:00 committed by GitHub
commit 7639639dbb
3 changed files with 5 additions and 9 deletions

View File

@ -42,9 +42,9 @@ Running Redmine with a database server is the recommened way.
$ docker run -d --name some-%%REPO%% --link some-postgres:postgres %%REPO%%
```
## %%COMPOSE%%
## %%STACK%%
Run `docker-compose up`, wait for it to initialize completely, and visit `http://localhost:8080` or `http://host-ip:8080`.
Run `docker stack deploy -c stack.yml %%REPO%%` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080`, `http://localhost:8080`, or `http://host-ip:8080` (as appropriate).
## Alternative Web Server

View File

@ -1,4 +1,4 @@
version: '2'
version: '3.1'
services:
@ -9,13 +9,9 @@ services:
environment:
REDMINE_DB_MYSQL: db
REDMINE_DB_PASSWORD: example
depends_on:
- db
restart: always
db:
image: mariadb
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: redmine
restart: always

View File

@ -40,7 +40,7 @@ $ docker run --name some-%%REPO%% -e WORDPRESS_DB_HOST=10.1.2.3:3306 \
## %%STACK%%
Run `docker stack deploy -c stack.yml %%REPO%%` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080`, `http://localhost:8080` or `http://host-ip:8080` (as appropriate).
Run `docker stack deploy -c stack.yml %%REPO%%` (or `docker-compose -f stack.yml up`), wait for it to initialize completely, and visit `http://swarm-ip:8080`, `http://localhost:8080`, or `http://host-ip:8080` (as appropriate).
## Adding additional libraries / extensions