Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ logs
*.sw?

*.sqlite
*.db
*.db

# Ignore uploads directory
/public/uploads/**/*
25 changes: 20 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
postgres:
image: postgres:15
container_name: postgres
container_name: postgres-${COOLIFY_BRANCH:-local}
environment:
POSTGRES_USER: ${POSTGRES_USER:-user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
Expand All @@ -13,33 +13,48 @@ services:
interval: 10s
timeout: 5s
retries: 5

networks:
- app_network_${COOLIFY_BRANCH:-local}

cache:
image: redis:latest
container_name: redis_cache
container_name: redis_cache-${COOLIFY_BRANCH:-local}
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- app_network_${COOLIFY_BRANCH:-local}


app:
build:
context: .
dockerfile: Dockerfile
container_name: express-vue-app
container_name: express-vue-app-${COOLIFY_BRANCH:-local}
environment:
POSTGRES_URL: postgres://${POSTGRES_USER:-user}:${POSTGRES_PASSWORD:-password}@postgres:5432/${POSTGRES_DB:-mydatabase}
depends_on:
postgres:
condition: service_healthy
cache:
condition: service_healthy
volumes:
- public_app_data:/app/public
networks:
- app_network_${COOLIFY_BRANCH:-local}

volumes:
postgres_data:
name: postgres_data_${COOLIFY_BRANCH:-local}
redis_data:
driver: local
name: redis_data_${COOLIFY_BRANCH:-local}
public_app_data:
name: public_app_data_${COOLIFY_BRANCH:-local}

networks:
app_network_${COOLIFY_BRANCH:-local}:
driver: bridge
Loading
Loading