Add Coolify compose and env example
This commit is contained in:
45
docker-compose.coolify.yml
Normal file
45
docker-compose.coolify.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
api:
|
||||
build:
|
||||
context: ./apps/api
|
||||
environment:
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
API_ADMIN_KEY: ${API_ADMIN_KEY}
|
||||
NODE_ENV: production
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "3000"
|
||||
|
||||
web:
|
||||
build:
|
||||
context: ./apps/web
|
||||
environment:
|
||||
API_URL: ${API_URL}
|
||||
NODE_ENV: production
|
||||
depends_on:
|
||||
- api
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "3000"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user