Merge pull request #933 from infosiftr/redmine-stack
Convert "redmine" to use "docker stack deploy"
This commit is contained in:
commit
7639639dbb
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue