diff --git a/docker-compose.prod.standalone.yml b/docker-compose.prod.standalone.yml new file mode 100644 index 000000000..9c40e58e1 --- /dev/null +++ b/docker-compose.prod.standalone.yml @@ -0,0 +1,40 @@ +version: '3.8' +services: + postgres: + volumes: + - coolify-db:/var/lib/postgresql/data + ports: + - 127.0.0.1:5432:5432 + environment: + POSTGRES_USER: "${DB_USERNAME:-coolify}" + POSTGRES_PASSWORD: "${DB_PASSWORD}" + POSTGRES_DB: "${DB_DATABASE:-coolify}" + healthcheck: + test: + [ + "CMD-SHELL", + "pg_isready -U ${DB_USERNAME:-coolify}", + "-d", + "${DB_DATABASE:-coolify}" + ] + interval: 2s + retries: 5 + timeout: 2s + redis: + command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD} + environment: + REDIS_PASSWORD: "${REDIS_PASSWORD}" + ports: + - 127.0.0.1:6379:6379 + volumes: + - coolify-redis:/data + healthcheck: + test: redis-cli ping + interval: 2s + retries: 5 + timeout: 2s +volumes: + coolify-db: + name: coolify-db + coolify-redis: + name: coolify-redis