Migrate current compose examples to PWD capable stacks
This commit is contained in:
parent
60c7d86482
commit
54359bd26c
|
|
@ -81,7 +81,9 @@ $ docker run --name some-%%REPO%% --link some-postgres:postgres -d \
|
||||||
-v %%REPO%%-themes:/var/www/html/themes \
|
-v %%REPO%%-themes:/var/www/html/themes \
|
||||||
```
|
```
|
||||||
|
|
||||||
## %%COMPOSE%%
|
## %%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). When installing select `postgres` as database with the following parameters: `dbname=postgres` `user=postgres` `pass=example` `hostname=postgres`
|
||||||
|
|
||||||
## Adding additional libraries / extensions
|
## Adding additional libraries / extensions
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
# Database password: example
|
# Database password: example
|
||||||
# ADVANCED OPTIONS; Database host: postgres
|
# ADVANCED OPTIONS; Database host: postgres
|
||||||
|
|
||||||
version: '2'
|
version: '3.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
|
@ -52,9 +52,10 @@ If you want the data directory to live beyond restarts, or even destruction of t
|
||||||
$ docker run --name some-%%REPO%% -d -p 8080:8080 -e DATA_DIR=/var/lib/geonetwork_data -v /host/geonetwork-docker:/var/lib/geonetwork_data %%REPO%%
|
$ docker run --name some-%%REPO%% -d -p 8080:8080 -e DATA_DIR=/var/lib/geonetwork_data -v /host/geonetwork-docker:/var/lib/geonetwork_data %%REPO%%
|
||||||
```
|
```
|
||||||
|
|
||||||
## %%COMPOSE%%
|
## %%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/geonetwork`, `http://localhost:8080/geonetwork`, or `http://host-ip:8080/geonetwork` (as appropriate).
|
||||||
|
|
||||||
Run `docker-compose up`, wait for it to initialize completely, and visit `http://localhost:8080/geonetwork` or `http://host-ip:8080/geonetwork`.
|
|
||||||
|
|
||||||
## Default credentials
|
## Default credentials
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
# Default user: admin
|
# Default user: admin
|
||||||
# Default password: admin
|
# Default password: admin
|
||||||
|
|
||||||
version: '2'
|
version: '3.1'
|
||||||
services:
|
services:
|
||||||
|
|
||||||
geonetwork:
|
geonetwork:
|
||||||
|
|
@ -15,4 +15,8 @@ services:
|
||||||
environment:
|
environment:
|
||||||
DATA_DIR: /var/lib/geonetwork_data
|
DATA_DIR: /var/lib/geonetwork_data
|
||||||
volumes:
|
volumes:
|
||||||
- "/host/geonetwork-docker:/var/lib/geonetwork_data"
|
- geonetwork:/var/lib/geonetwork_data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
geonetwork:
|
||||||
|
|
||||||
|
|
@ -36,9 +36,9 @@ $ docker run --name some-%%REPO%% -e JOOMLA_DB_HOST=10.1.2.3:3306 \
|
||||||
-e JOOMLA_DB_USER=... -e JOOMLA_DB_PASSWORD=... -d %%REPO%%
|
-e JOOMLA_DB_USER=... -e JOOMLA_DB_PASSWORD=... -d %%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).
|
||||||
|
|
||||||
## Adding additional libraries / extensions
|
## Adding additional libraries / extensions
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
joomla:
|
|
||||||
image: joomla
|
|
||||||
links:
|
|
||||||
- joomladb:mysql
|
|
||||||
ports:
|
|
||||||
- 8080:80
|
|
||||||
|
|
||||||
joomladb:
|
|
||||||
image: mysql:5.6
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: example
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
joomla:
|
||||||
|
image: joomla
|
||||||
|
links:
|
||||||
|
- joomladb:mysql
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
|
environment:
|
||||||
|
JOOMLA_DB_HOST: joomladb
|
||||||
|
JOOMLA_DB_PASSWORD: example
|
||||||
|
|
||||||
|
joomladb:
|
||||||
|
image: mysql:5.6
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: example
|
||||||
|
|
@ -44,4 +44,6 @@ The [`occ` tool from upstream](https://doc.owncloud.org/server/9.0/admin_manual/
|
||||||
$ docker exec -u www-data some-owncloud php occ status
|
$ docker exec -u www-data some-owncloud php occ status
|
||||||
```
|
```
|
||||||
|
|
||||||
## %%COMPOSE%%
|
## %%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).
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
# Database name: pick any name
|
# Database name: pick any name
|
||||||
# Database host: replace "localhost" with "mysql"
|
# Database host: replace "localhost" with "mysql"
|
||||||
|
|
||||||
version: '2'
|
version: '3.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
Loading…
Reference in New Issue