mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
Implemented repository wide restart policy
This commit is contained in:
parent
695618a170
commit
2f3d90cd07
@ -146,6 +146,7 @@ domains_wordpress: ["wordpress.{{top_domain}}","blog.{{top_domain}}
|
|||||||
postgres_default_version: "16"
|
postgres_default_version: "16"
|
||||||
|
|
||||||
### Docker Role Specific Parameters
|
### Docker Role Specific Parameters
|
||||||
|
docker_restart_policy: "unless-stopped"
|
||||||
|
|
||||||
#### Akaunting
|
#### Akaunting
|
||||||
version_akaunting: "latest"
|
version_akaunting: "latest"
|
||||||
|
@ -12,7 +12,7 @@ services:
|
|||||||
- 127.0.0.1:{{http_port}}:80
|
- 127.0.0.1:{{http_port}}:80
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/www/html
|
- data:/var/www/html
|
||||||
restart: unless-stopped
|
restart: {{docker_restart_policy}}
|
||||||
env_file:
|
env_file:
|
||||||
- env/run.env
|
- env/run.env
|
||||||
environment:
|
environment:
|
||||||
|
@ -9,7 +9,7 @@ services:
|
|||||||
application:
|
application:
|
||||||
image: baserow/baserow:1.19.1
|
image: baserow/baserow:1.19.1
|
||||||
container_name: baserow-application
|
container_name: baserow-application
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
env_file:
|
env_file:
|
||||||
|
@ -5,7 +5,7 @@ services:
|
|||||||
{% include 'templates/docker-service-redis.yml.j2' %}
|
{% include 'templates/docker-service-redis.yml.j2' %}
|
||||||
|
|
||||||
celeryworker:
|
celeryworker:
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
||||||
env_file: .env
|
env_file: .env
|
||||||
command: celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY-0}
|
command: celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY-0}
|
||||||
@ -18,7 +18,7 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
celerybeat:
|
celerybeat:
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
||||||
env_file: .env
|
env_file: .env
|
||||||
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
|
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
|
||||||
@ -26,7 +26,7 @@ services:
|
|||||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||||
|
|
||||||
api:
|
api:
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
||||||
depends_on:
|
depends_on:
|
||||||
env_file: .env
|
env_file: .env
|
||||||
@ -39,7 +39,7 @@ services:
|
|||||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||||
|
|
||||||
front:
|
front:
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
image: funkwhale/front:${FUNKWHALE_VERSION:-latest}
|
image: funkwhale/front:${FUNKWHALE_VERSION:-latest}
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
|
@ -7,7 +7,7 @@ services:
|
|||||||
application:
|
application:
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
|
@ -7,7 +7,7 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
image: 'gitlab/gitlab-ee:latest'
|
image: 'gitlab/gitlab-ee:latest'
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
hostname: '{{domain}}'
|
hostname: '{{domain}}'
|
||||||
environment:
|
environment:
|
||||||
GITLAB_OMNIBUS_CONFIG: |
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
|
@ -7,10 +7,9 @@
|
|||||||
definition:
|
definition:
|
||||||
application:
|
application:
|
||||||
image: jenkins/jenkins:lts
|
image: jenkins/jenkins:lts
|
||||||
restart: always
|
restart: "{{docker_restart_policy}}"
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:8080"
|
- "127.0.0.1:{{http_port}}:8080"
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- jenkins_data:/var/jenkins_home
|
- jenkins_data:/var/jenkins_home
|
||||||
log_driver: journald
|
log_driver: journald
|
||||||
|
@ -13,7 +13,7 @@ services:
|
|||||||
JOOMLA_DB_USER: "{{database_username}}"
|
JOOMLA_DB_USER: "{{database_username}}"
|
||||||
JOOMLA_DB_PASSWORD: "{{database_password}}"
|
JOOMLA_DB_PASSWORD: "{{database_password}}"
|
||||||
JOOMLA_DB_NAME: "{{database_name}}"
|
JOOMLA_DB_NAME: "{{database_name}}"
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/www/html
|
- data:/var/www/html
|
||||||
ports:
|
ports:
|
||||||
|
@ -5,7 +5,7 @@ services:
|
|||||||
{% include 'templates/docker-service-' + database_type + '.yml.j2' %}
|
{% include 'templates/docker-service-' + database_type + '.yml.j2' %}
|
||||||
|
|
||||||
application:
|
application:
|
||||||
restart: unless-stopped
|
restart: {{docker_restart_policy}}
|
||||||
image: listmonk/listmonk:latest
|
image: listmonk/listmonk:latest
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:9000"
|
- "127.0.0.1:{{http_port}}:9000"
|
||||||
|
@ -10,7 +10,7 @@ services:
|
|||||||
resolver:
|
resolver:
|
||||||
image: ghcr.io/mailu/unbound:{{version_mailu}}
|
image: ghcr.io/mailu/unbound:{{version_mailu}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||||
ipv4_address: 192.168.203.254
|
ipv4_address: 192.168.203.254
|
||||||
logging:
|
logging:
|
||||||
@ -18,7 +18,7 @@ services:
|
|||||||
|
|
||||||
front:
|
front:
|
||||||
image: ghcr.io/mailu/nginx:{{version_mailu}}
|
image: ghcr.io/mailu/nginx:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
@ -45,7 +45,7 @@ services:
|
|||||||
|
|
||||||
admin:
|
admin:
|
||||||
image: ghcr.io/mailu/admin:{{version_mailu}}
|
image: ghcr.io/mailu/admin:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
volumes:
|
volumes:
|
||||||
- "admin_data:/data"
|
- "admin_data:/data"
|
||||||
@ -63,7 +63,7 @@ services:
|
|||||||
|
|
||||||
imap:
|
imap:
|
||||||
image: ghcr.io/mailu/dovecot:{{version_mailu}}
|
image: ghcr.io/mailu/dovecot:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
volumes:
|
volumes:
|
||||||
- "dovecot_mail:/mail"
|
- "dovecot_mail:/mail"
|
||||||
@ -79,7 +79,7 @@ services:
|
|||||||
|
|
||||||
smtp:
|
smtp:
|
||||||
image: ghcr.io/mailu/postfix:{{version_mailu}}
|
image: ghcr.io/mailu/postfix:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
volumes:
|
volumes:
|
||||||
- "/etc/mailu/overrides:/overrides:ro"
|
- "/etc/mailu/overrides:/overrides:ro"
|
||||||
@ -96,7 +96,7 @@ services:
|
|||||||
oletools:
|
oletools:
|
||||||
image: ghcr.io/mailu/oletools:{{version_mailu}}
|
image: ghcr.io/mailu/oletools:{{version_mailu}}
|
||||||
hostname: oletools
|
hostname: oletools
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
depends_on:
|
depends_on:
|
||||||
- resolver
|
- resolver
|
||||||
dns:
|
dns:
|
||||||
@ -106,7 +106,7 @@ services:
|
|||||||
|
|
||||||
antispam:
|
antispam:
|
||||||
image: ghcr.io/mailu/rspamd:{{version_mailu}}
|
image: ghcr.io/mailu/rspamd:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
volumes:
|
volumes:
|
||||||
- "filter:/var/lib/rspamd"
|
- "filter:/var/lib/rspamd"
|
||||||
@ -128,7 +128,7 @@ services:
|
|||||||
# Optional services
|
# Optional services
|
||||||
antivirus:
|
antivirus:
|
||||||
image: ghcr.io/mailu/clamav:{{version_mailu}}
|
image: ghcr.io/mailu/clamav:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
volumes:
|
volumes:
|
||||||
- "filter:/data"
|
- "filter:/data"
|
||||||
@ -142,7 +142,7 @@ services:
|
|||||||
|
|
||||||
webdav:
|
webdav:
|
||||||
image: ghcr.io/mailu/radicale:{{version_mailu}}
|
image: ghcr.io/mailu/radicale:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
volumes:
|
volumes:
|
||||||
- "webdav_data:/data"
|
- "webdav_data:/data"
|
||||||
@ -159,7 +159,7 @@ services:
|
|||||||
image: ghcr.io/mailu/fetchmail:{{version_mailu}}
|
image: ghcr.io/mailu/fetchmail:{{version_mailu}}
|
||||||
volumes:
|
volumes:
|
||||||
- "admin_data:/data"
|
- "admin_data:/data"
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
@ -174,7 +174,7 @@ services:
|
|||||||
|
|
||||||
webmail:
|
webmail:
|
||||||
image: ghcr.io/mailu/webmail:{{version_mailu}}
|
image: ghcr.io/mailu/webmail:{{version_mailu}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: mailu.env
|
env_file: mailu.env
|
||||||
volumes:
|
volumes:
|
||||||
- "webmail_data:/data"
|
- "webmail_data:/data"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
published_ports:
|
published_ports:
|
||||||
- "127.0.0.1:3306:3306" # can be that this will be removed if all applications use sockets
|
- "127.0.0.1:3306:3306" # can be that this will be removed if all applications use sockets
|
||||||
command: "--transaction-isolation=READ-COMMITTED --binlog-format=ROW" #for nextcloud
|
command: "--transaction-isolation=READ-COMMITTED --binlog-format=ROW" #for nextcloud
|
||||||
restart_policy: unless-stopped
|
restart_policy: "{{docker_restart_policy}}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "/usr/bin/mariadb --user=root --password={{central_mariadb_root_password}} --execute \"SHOW DATABASES;\""
|
test: "/usr/bin/mariadb --user=root --password={{central_mariadb_root_password}} --execute \"SHOW DATABASES;\""
|
||||||
interval: 3s
|
interval: 3s
|
||||||
|
@ -7,7 +7,7 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
|
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -23,7 +23,7 @@ services:
|
|||||||
|
|
||||||
streaming:
|
streaming:
|
||||||
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
|
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
command: node ./streaming
|
command: node ./streaming
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@ -37,7 +37,7 @@ services:
|
|||||||
|
|
||||||
sidekiq:
|
sidekiq:
|
||||||
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
|
image: ghcr.io/mastodon/mastodon:{{version_mastodon}}
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
env_file: .env.production
|
env_file: .env.production
|
||||||
command: bundle exec sidekiq
|
command: bundle exec sidekiq
|
||||||
{% include 'templates/docker-container-depends-on-database-redis.yml.j2' %}
|
{% include 'templates/docker-container-depends-on-database-redis.yml.j2' %}
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
image: matomo
|
image: matomo
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:80"
|
- "127.0.0.1:{{http_port}}:80"
|
||||||
environment:
|
environment:
|
||||||
|
@ -6,7 +6,7 @@ services:
|
|||||||
|
|
||||||
synapse:
|
synapse:
|
||||||
image: matrixdotorg/synapse:latest
|
image: matrixdotorg/synapse:latest
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
@ -23,7 +23,7 @@ services:
|
|||||||
|
|
||||||
element:
|
element:
|
||||||
image: vectorim/element-web:latest
|
image: vectorim/element-web:latest
|
||||||
restart: unless-stopped
|
restart: {{docker_restart_policy}}
|
||||||
volumes:
|
volumes:
|
||||||
- ./element-config.json:/app/config.json
|
- ./element-config.json:/app/config.json
|
||||||
ports:
|
ports:
|
||||||
@ -34,28 +34,28 @@ services:
|
|||||||
#mautrix-telegram:
|
#mautrix-telegram:
|
||||||
# container_name: mautrix-telegram
|
# container_name: mautrix-telegram
|
||||||
# image: dock.mau.dev/mautrix/telegram:<version>
|
# image: dock.mau.dev/mautrix/telegram:<version>
|
||||||
# restart: unless-stopped
|
# restart: {{docker_restart_policy}}
|
||||||
# volumes:
|
# volumes:
|
||||||
# - telegram_bridge_data:/data
|
# - telegram_bridge_data:/data
|
||||||
|
|
||||||
#mautrix-whatsapp:
|
#mautrix-whatsapp:
|
||||||
# container_name: mautrix-whatsapp
|
# container_name: mautrix-whatsapp
|
||||||
# image: dock.mau.dev/mautrix/whatsapp:latest
|
# image: dock.mau.dev/mautrix/whatsapp:latest
|
||||||
# restart: unless-stopped
|
# restart: {{docker_restart_policy}}
|
||||||
# volumes:
|
# volumes:
|
||||||
# - ./mautrix_whatsapp:/data
|
# - ./mautrix_whatsapp:/data
|
||||||
|
|
||||||
#mautrix-facebook:
|
#mautrix-facebook:
|
||||||
# container_name: mautrix-facebook
|
# container_name: mautrix-facebook
|
||||||
# image: dock.mau.dev/mautrix/facebook:<version>
|
# image: dock.mau.dev/mautrix/facebook:<version>
|
||||||
# restart: unless-stopped
|
# restart: {{docker_restart_policy}}
|
||||||
# volumes:
|
# volumes:
|
||||||
# - facebook_bridge_data:/data
|
# - facebook_bridge_data:/data
|
||||||
|
|
||||||
#mautrix-instagram:
|
#mautrix-instagram:
|
||||||
# container_name: mautrix-instagram
|
# container_name: mautrix-instagram
|
||||||
# image: dock.mau.dev/mautrix/instagram:<version>
|
# image: dock.mau.dev/mautrix/instagram:<version>
|
||||||
# restart: unless-stopped
|
# restart: {{docker_restart_policy}}
|
||||||
# volumes:
|
# volumes:
|
||||||
# - instagram_bridge_data:/data
|
# - instagram_bridge_data:/data
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
application:
|
application:
|
||||||
log_driver: journald
|
log_driver: journald
|
||||||
image: mediawiki
|
image: mediawiki
|
||||||
restart: always
|
restart: "{{docker_restart_policy}}"
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
volumes:
|
volumes:
|
||||||
@ -26,4 +26,4 @@
|
|||||||
MARIADB_AUTO_UPGRADE: "1"
|
MARIADB_AUTO_UPGRADE: "1"
|
||||||
volumes:
|
volumes:
|
||||||
- database:/var/lib/mysql
|
- database:/var/lib/mysql
|
||||||
restart: always
|
restart: "{{docker_restart_policy}}"
|
||||||
|
@ -9,7 +9,7 @@ services:
|
|||||||
options:
|
options:
|
||||||
tag: "mybb_application"
|
tag: "mybb_application"
|
||||||
image: mybb/mybb:latest
|
image: mybb/mybb:latest
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/www/html
|
- data:/var/www/html
|
||||||
{% include 'templates/docker-container-depends-on-just-database.yml.j2' %}
|
{% include 'templates/docker-container-depends-on-just-database.yml.j2' %}
|
||||||
@ -21,7 +21,7 @@ services:
|
|||||||
options:
|
options:
|
||||||
tag: "mybb_server"
|
tag: "mybb_server"
|
||||||
image: nginx:mainline
|
image: nginx:mainline
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:80"
|
- "127.0.0.1:{{http_port}}:80"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
|
|
||||||
application:
|
application:
|
||||||
image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
|
image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
@ -25,7 +25,7 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:80"
|
- "127.0.0.1:{{http_port}}:80"
|
||||||
volumes:
|
volumes:
|
||||||
@ -41,7 +41,7 @@ services:
|
|||||||
|
|
||||||
cron:
|
cron:
|
||||||
image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
|
image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
version: "3.7"
|
version: "3.7"
|
||||||
|
|
||||||
x-op-app: &app
|
x-op-app: &app
|
||||||
restart: unless-stopped
|
restart: {{docker_restart_policy}}
|
||||||
image: openproject/community:${TAG:-13}
|
image: openproject/community:${TAG:-13}
|
||||||
environment:
|
environment:
|
||||||
OPENPROJECT_HTTPS: "${OPENPROJECT_HTTPS}"
|
OPENPROJECT_HTTPS: "${OPENPROJECT_HTTPS}"
|
||||||
@ -25,11 +25,11 @@ services:
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
image: memcached
|
image: memcached
|
||||||
restart: unless-stopped
|
restart: {{docker_restart_policy}}
|
||||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
restart: unless-stopped
|
restart: {{docker_restart_policy}}
|
||||||
image: openproject/community:${TAG:-13}
|
image: openproject/community:${TAG:-13}
|
||||||
command: "./docker/prod/proxy"
|
command: "./docker/prod/proxy"
|
||||||
ports:
|
ports:
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
|
|
||||||
application:
|
application:
|
||||||
image: zknt/pixelfed
|
image: zknt/pixelfed
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
env_file:
|
env_file:
|
||||||
@ -23,7 +23,7 @@ services:
|
|||||||
{% include 'templates/docker-container-networks.yml.j2' %}
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
||||||
worker:
|
worker:
|
||||||
image: zknt/pixelfed
|
image: zknt/pixelfed
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
env_file:
|
env_file:
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
- "127.0.0.1:5432:5432"
|
- "127.0.0.1:5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- central_postgres_database:/var/lib/postgresql/data
|
- central_postgres_database:/var/lib/postgresql/data
|
||||||
restart_policy: unless-stopped
|
restart_policy: "{{docker_restart_policy}}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
@ -6,4 +6,4 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:{{http_port}}:8080
|
- 127.0.0.1:{{http_port}}:8080
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
@ -10,7 +10,7 @@ services:
|
|||||||
image: custom_wordpress
|
image: custom_wordpress
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:80"
|
- "127.0.0.1:{{http_port}}:80"
|
||||||
environment:
|
environment:
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
image: yourls
|
image: yourls
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{http_port}}:80"
|
- "127.0.0.1:{{http_port}}:80"
|
||||||
environment:
|
environment:
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
image: mariadb
|
image: mariadb
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: "{{database_name}}"
|
MYSQL_DATABASE: "{{database_name}}"
|
||||||
MYSQL_USER: "{{database_username}}"
|
MYSQL_USER: "{{database_username}}"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
- POSTGRES_USER={{database_username}}
|
- POSTGRES_USER={{database_username}}
|
||||||
- POSTGRES_DB={{database_name}}
|
- POSTGRES_DB={{database_name}}
|
||||||
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
|
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U {{database_name}}"]
|
test: ["CMD-SHELL", "pg_isready -U {{database_name}}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
container_name: {{docker_compose_project_name}}-redis
|
container_name: {{docker_compose_project_name}}-redis
|
||||||
restart: always
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user