Compare commits
3
Commits
eea25bc04b
...
aaf290cafe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaf290cafe
|
||
|
|
0bbc3ed7f7
|
||
|
|
6c82a8a699
|
No files matched your search
@@ -15,6 +15,9 @@ common_journal_retention_days: 21
|
||||
common_journal_max_disk_limit: "5%"
|
||||
common_atop_retention_days: 3
|
||||
|
||||
# Optimizations
|
||||
enable_nic_offloads: false
|
||||
|
||||
# User management
|
||||
admin_users:
|
||||
- name: "{{ ansible_user }}"
|
||||
|
||||
@@ -7,3 +7,8 @@
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Restart networking
|
||||
ansible.builtin.service:
|
||||
name: networking
|
||||
state: restarted
|
||||
@@ -43,7 +43,7 @@
|
||||
notify: Reload systemd
|
||||
tags: optimization
|
||||
|
||||
- name: Enable and start GPU unbind servie
|
||||
- name: Enable and start GPU unbind service
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: gpu-unbind-{{ item.label }}
|
||||
@@ -51,3 +51,13 @@
|
||||
state: started
|
||||
loop: "{{ gpu_unbind_devices }}"
|
||||
tags: optimization
|
||||
|
||||
- name: NIC offloads
|
||||
when: enable_nic_offloads | bool
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: nic-offloads.j2
|
||||
dest: /etc/network/if-up.d/{{ ansible_default_ipv4.interface }}
|
||||
mode: "0755"
|
||||
notify: Restart networking
|
||||
tags: optimization
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
ethtool -K {{ ansible_default_ipv4.interface }} rx-udp-gro-forwarding on rx-gro-list off
|
||||
@@ -8,6 +8,7 @@
|
||||
pull: always
|
||||
wait: true
|
||||
wait_timeout: "{{ coolify_compose_wait_timeout }}"
|
||||
remove_orphans: true
|
||||
tags: coolify, docker, start
|
||||
|
||||
- name: Wait for Coolify HTTP to respond
|
||||
|
||||
@@ -32,7 +32,7 @@ services:
|
||||
- "${APP_PORT:-8000}"
|
||||
healthcheck:
|
||||
test: curl --fail http://127.0.0.1:8080/api/health || exit 1
|
||||
interval: 5s
|
||||
interval: 30s
|
||||
retries: 10
|
||||
timeout: 2s
|
||||
|
||||
@@ -47,7 +47,7 @@ services:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE:-coolify}
|
||||
interval: 5s
|
||||
interval: 30s
|
||||
retries: 10
|
||||
timeout: 2s
|
||||
|
||||
@@ -59,7 +59,7 @@ services:
|
||||
- coolify-redis:/data
|
||||
healthcheck:
|
||||
test: redis-cli ping
|
||||
interval: 5s
|
||||
interval: 30s
|
||||
retries: 10
|
||||
timeout: 2s
|
||||
|
||||
@@ -90,7 +90,7 @@ services:
|
||||
# test:
|
||||
# - CMD-SHELL
|
||||
# - wget -qO- http://127.0.0.1:6001/ready && wget -qO- http://127.0.0.1:6002/ready || exit 1
|
||||
# interval: 5s
|
||||
# interval: 30s
|
||||
# retries: 10
|
||||
# timeout: 2s
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
services:
|
||||
coolify:
|
||||
container_name: coolify
|
||||
mem_limit: 128m
|
||||
memswap_limit: 512m
|
||||
restart: always
|
||||
working_dir: /var/www/html
|
||||
extra_hosts:
|
||||
@@ -19,6 +21,8 @@ services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: coolify-db
|
||||
mem_limit: 64m
|
||||
memswap_limit: 128m
|
||||
restart: always
|
||||
networks:
|
||||
- coolify
|
||||
@@ -26,12 +30,16 @@ services:
|
||||
redis:
|
||||
image: redis:8-alpine
|
||||
container_name: coolify-redis
|
||||
mem_limit: 32m
|
||||
memswap_limit: 64m
|
||||
restart: always
|
||||
networks:
|
||||
- coolify
|
||||
|
||||
# soketi:
|
||||
# container_name: coolify-realtime
|
||||
# mem_limit: 32m
|
||||
# memswap_limit: 64m
|
||||
# extra_hosts:
|
||||
# - host.docker.internal:host-gateway
|
||||
# restart: always
|
||||
|
||||
Reference in new issue
Block a user