Skip to content

Instantly share code, notes, and snippets.

@richardokonicha
Created August 10, 2023 03:01
Show Gist options
  • Save richardokonicha/0f9b2f9da12c6ffe5adbc214ac186ad2 to your computer and use it in GitHub Desktop.
Save richardokonicha/0f9b2f9da12c6ffe5adbc214ac186ad2 to your computer and use it in GitHub Desktop.
docker compose for coolify v4
version: '3'
services:
coolify-builder:
image: ghcr.io/coollabsio/coolify-builder
volumes:
- /data/coolify/source:/data/coolify/source
- /var/run/docker.sock:/var/run/docker.sock
environment:
- LATEST_IMAGE=${LATEST_IMAGE:-}
# Add your environment variables here
- APP_KEY=admin
- DB_PASSWORD=admin
- REDIS_PASSWORD=admin
- USERID=1000
- GROUPID=1000
- APP_ID=development
- APP_ENV=local
- APP_DEBUG=true
- APP_URL=http://localhost
- APP_PORT=8000
- DUSK_DRIVER_URL=http://selenium:4444
# ... add more variables as needed
command: >
bash -c "docker compose --env-file /data/coolify/source/.env
-f /data/coolify/source/docker-compose.yml
-f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment