Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

always restart in prod

Andras Bacsaie6726b069044
diff --git a/docker-compose.yml b/docker-compose.yml
index 24b83b4b41..70af51ab02 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,18 +1,20 @@
version: '3.8'
services:
- coolify:
- working_dir: /var/www/html
- extra_hosts:
- - 'host.docker.internal:host-gateway'
- networks:
- - coolify
- depends_on:
- - postgres
+ coolify:
+ restart: always
+ working_dir: /var/www/html
+ extra_hosts:
+ - 'host.docker.internal:host-gateway'
+ networks:
+ - coolify
+ depends_on:
+ - postgres
- postgres:
- image: postgres:15-alpine
- networks:
- - coolify
+ postgres:
+ image: postgres:15-alpine
+ restart: always
+ networks:
+ - coolify
networks:
- coolify:
- driver: bridge
+ coolify:
+ driver: bridge