mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-21 20:31:02 +01:00
Optimized restart policies
This commit is contained in:
parent
839e1209ab
commit
e52aa3a411
@ -5,6 +5,9 @@ services:
|
|||||||
image: docker.io/bitnami/moodle:latest
|
image: docker.io/bitnami/moodle:latest
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:{{http_port}}:8080
|
- 127.0.0.1:{{http_port}}:8080
|
||||||
|
restart: {{docker_restart_policy}}
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
environment:
|
environment:
|
||||||
- MOODLE_DATABASE_HOST={{database_host}}
|
- MOODLE_DATABASE_HOST={{database_host}}
|
||||||
- MOODLE_DATABASE_PORT_NUMBER=3306
|
- MOODLE_DATABASE_PORT_NUMBER=3306
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
version: "3.7"
|
version: "3.7"
|
||||||
|
|
||||||
x-op-app: &app
|
x-op-app: &app
|
||||||
restart: {{docker_restart_policy}}
|
logging:
|
||||||
|
driver: journald
|
||||||
image: custom_openproject
|
image: custom_openproject
|
||||||
environment:
|
environment:
|
||||||
OPENPROJECT_HTTPS: "${OPENPROJECT_HTTPS}"
|
OPENPROJECT_HTTPS: "${OPENPROJECT_HTTPS}"
|
||||||
@ -27,10 +28,14 @@ services:
|
|||||||
image: memcached
|
image: memcached
|
||||||
container_name: openproject-memcached
|
container_name: openproject-memcached
|
||||||
restart: {{docker_restart_policy}}
|
restart: {{docker_restart_policy}}
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
restart: {{docker_restart_policy}}
|
restart: {{docker_restart_policy}}
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
image: custom_openproject
|
image: custom_openproject
|
||||||
container_name: openproject-proxy
|
container_name: openproject-proxy
|
||||||
command: "./docker/prod/proxy"
|
command: "./docker/prod/proxy"
|
||||||
@ -48,6 +53,7 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
<<: *app
|
<<: *app
|
||||||
|
restart: {{docker_restart_policy}}
|
||||||
command: "./docker/prod/web"
|
command: "./docker/prod/web"
|
||||||
container_name: openproject-web
|
container_name: openproject-web
|
||||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||||
@ -68,6 +74,9 @@ services:
|
|||||||
autoheal:
|
autoheal:
|
||||||
image: willfarrell/autoheal:1.2.0
|
image: willfarrell/autoheal:1.2.0
|
||||||
container_name: openproject-autoheal
|
container_name: openproject-autoheal
|
||||||
|
restart: {{docker_restart_policy}}
|
||||||
|
logging:
|
||||||
|
driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
environment:
|
environment:
|
||||||
@ -77,6 +86,7 @@ services:
|
|||||||
|
|
||||||
worker:
|
worker:
|
||||||
<<: *app
|
<<: *app
|
||||||
|
restart: {{docker_restart_policy}}
|
||||||
command: "./docker/prod/worker"
|
command: "./docker/prod/worker"
|
||||||
container_name: openproject-worker
|
container_name: openproject-worker
|
||||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||||
@ -88,6 +98,7 @@ services:
|
|||||||
|
|
||||||
cron:
|
cron:
|
||||||
<<: *app
|
<<: *app
|
||||||
|
restart: {{docker_restart_policy}}
|
||||||
command: "./docker/prod/cron"
|
command: "./docker/prod/cron"
|
||||||
container_name: openproject-cron
|
container_name: openproject-cron
|
||||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user