add redmine + fix wordpress networks
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
"type": 3,
|
"type": 3,
|
||||||
"title": "Wordpress",
|
"title": "Wordpress",
|
||||||
"description": "Wordpress",
|
"description": "Wordpress",
|
||||||
"categories": ["PaaS"],
|
"categories": ["Blog"],
|
||||||
"platform": "linux",
|
"platform": "linux",
|
||||||
"logo": "",
|
"logo": "https://s.w.org/style/images/about/simplified.png",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://git.baraise.fr/Aguay/portainer",
|
"url": "https://git.baraise.fr/Aguay/portainer",
|
||||||
"stackfile": "wordpress/docker-compose.yml"
|
"stackfile": "wordpress/docker-compose.yml"
|
||||||
@@ -64,12 +64,45 @@
|
|||||||
"label": "Url app host",
|
"label": "Url app host",
|
||||||
"description": "Host port to expose SSH port of Dokku (22 if empty)",
|
"description": "Host port to expose SSH port of Dokku (22 if empty)",
|
||||||
"default": "wordpress.traefik.me"
|
"default": "wordpress.traefik.me"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": 3,
|
||||||
|
"title": "Redmine",
|
||||||
|
"description": "Installation de Redmine en mode docker compose",
|
||||||
|
"categories": ["PaaS"],
|
||||||
|
"platform": "linux",
|
||||||
|
"logo": "",
|
||||||
|
"repository": {
|
||||||
|
"url": "https://git.baraise.fr/Aguay/portainer",
|
||||||
|
"stackfile": "redmine/docker-compose.yml"
|
||||||
|
},
|
||||||
|
"env": [
|
||||||
|
{
|
||||||
|
"name": "REDMINE_DB_MYSQL",
|
||||||
|
"label": "redmine_db_name",
|
||||||
|
"description": "Nom de la bdd mysql pour Redmine.",
|
||||||
|
"default": "redmine"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ROUTER_NAME",
|
"name": "REDMINE_DB_PASSWORD",
|
||||||
|
"label": "Mysql passsword",
|
||||||
|
"description": "Mot de passe pour la bdd redmine password",
|
||||||
|
"default": "redmine"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "REDMINE_VERSION",
|
||||||
|
"label": "Redmine version",
|
||||||
|
"description": "Version de Redmine (latest si vide)",
|
||||||
|
"default": "latest"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "APP_HOST",
|
||||||
"label": "Url app host",
|
"label": "Url app host",
|
||||||
"description": "Host port to expose SSH port of Dokku (22 if empty)",
|
"description": "Nom de domaine pour l'accès à l'application",
|
||||||
"default": "wordpress"
|
"default": "redmine.traefik.me"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
34
redmine/docker-compose.yml
Normal file
34
redmine/docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
version: '3.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
redmine:
|
||||||
|
image: redmine:${REDMINE_VERSION:-latest}
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
REDMINE_DB_MYSQL: ${REDMINE_DB_MYSQL}
|
||||||
|
REDMINE_DB_PASSWORD: ${REDMINE_DB_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- redmine_data:/usr/src/redmine/files
|
||||||
|
networks:
|
||||||
|
- traefik_web
|
||||||
|
- default
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.docker.network=traefik_web
|
||||||
|
- traefik.http.routers.${APP_HOST//./-}-router.entrypoints=${ENTRYPOINT}
|
||||||
|
- traefik.http.routers.${APP_HOST//./-}-router.rule=Host(`${APP_HOST}`)
|
||||||
|
- traefik.http.routers.${APP_HOST//./-}-router.tls=true
|
||||||
|
db:
|
||||||
|
image: mysql:${version}
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: ${REDMINE_DB_PASSWORD}
|
||||||
|
MYSQL_DATABASE: ${REDMINE_DB_MYSQL}
|
||||||
|
volumes:
|
||||||
|
redmine_data:
|
||||||
|
|
||||||
|
# Specific for traefik
|
||||||
|
networks:
|
||||||
|
traefik_web:
|
||||||
|
external: true
|
||||||
@@ -22,13 +22,15 @@ services:
|
|||||||
- WORDPRESS_DB_USER=${MYSQL_USER}
|
- WORDPRESS_DB_USER=${MYSQL_USER}
|
||||||
- WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD}
|
- WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD}
|
||||||
- WORDPRESS_DB_NAME=${MYSQL_DATABASE}
|
- WORDPRESS_DB_NAME=${MYSQL_DATABASE}
|
||||||
networks:
|
networks:
|
||||||
- traefik_web
|
- traefik_web
|
||||||
labels:
|
- default
|
||||||
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.${ROUTER_NAME}-router.entrypoints=${ENTRYPOINT}
|
- traefik.docker.network=traefik_web
|
||||||
- traefik.http.routers.${ROUTER_NAME}-router.rule=Host(`${APP_HOST}`)
|
- traefik.http.routers.${APP_HOST//./-}-router.entrypoints=${ENTRYPOINT}
|
||||||
|
- traefik.http.routers.${APP_HOST//./-}-router.rule=Host(`${APP_HOST}`)
|
||||||
|
- traefik.http.routers.${APP_HOST//./-}-router.tls=true
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
db_data:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user