diff --git a/samples/bullmq-bullboard-redis/compose.yaml b/samples/bullmq-bullboard-redis/compose.yaml index f535f51d..4fb41eab 100644 --- a/samples/bullmq-bullboard-redis/compose.yaml +++ b/samples/bullmq-bullboard-redis/compose.yaml @@ -66,3 +66,10 @@ services: ports: - mode: host target: 6379 + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/crew-django-redis-postgres/compose.yaml b/samples/crew-django-redis-postgres/compose.yaml index 80794618..35512e7c 100644 --- a/samples/crew-django-redis-postgres/compose.yaml +++ b/samples/crew-django-redis-postgres/compose.yaml @@ -9,6 +9,13 @@ services: target: 5432 published: 5432 + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M + redis: image: redis:6.2 x-defang-redis: true @@ -17,6 +24,13 @@ services: target: 6379 published: 6379 + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M + app: build: context: ./app diff --git a/samples/django-celery/compose.yaml b/samples/django-celery/compose.yaml index 72502f33..baad8880 100644 --- a/samples/django-celery/compose.yaml +++ b/samples/django-celery/compose.yaml @@ -69,6 +69,13 @@ services: timeout: 5s retries: 5 + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M + broker: image: redis:7 x-defang-redis: true @@ -82,3 +89,10 @@ services: timeout: 5s retries: 5 + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/django-channels-redis-postgres/compose.yaml b/samples/django-channels-redis-postgres/compose.yaml index 787233bc..c20f78dd 100644 --- a/samples/django-channels-redis-postgres/compose.yaml +++ b/samples/django-channels-redis-postgres/compose.yaml @@ -32,6 +32,13 @@ services: - mode: host target: 6379 + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M + migrate: restart: "no" build: @@ -55,3 +62,10 @@ services: - POSTGRES_PASSWORD - POSTGRES_DB=djangodatabase - POSTGRES_USER=djangouser + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/django-postgres/compose.yaml b/samples/django-postgres/compose.yaml index 1682f5b7..4ea363ab 100644 --- a/samples/django-postgres/compose.yaml +++ b/samples/django-postgres/compose.yaml @@ -12,6 +12,13 @@ services: target: 5432 published: 5432 + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M + django: # uncomment to add your own domain # domainname: example.com diff --git a/samples/fastapi-postgres-pubsub/compose.yaml b/samples/fastapi-postgres-pubsub/compose.yaml index 1b1b90d6..c7412495 100644 --- a/samples/fastapi-postgres-pubsub/compose.yaml +++ b/samples/fastapi-postgres-pubsub/compose.yaml @@ -18,6 +18,13 @@ services: retries: 3 start_period: 10s + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M + app_b: build: context: ./app @@ -53,3 +60,10 @@ services: retries: 5 start_period: 5s + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/fastapi-postgres/compose.yaml b/samples/fastapi-postgres/compose.yaml index 06621caa..80d47815 100644 --- a/samples/fastapi-postgres/compose.yaml +++ b/samples/fastapi-postgres/compose.yaml @@ -27,3 +27,10 @@ services: ports: - mode: host target: 5432 + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/golang-mongodb/compose.yaml b/samples/golang-mongodb/compose.yaml index e101676d..1908efa7 100644 --- a/samples/golang-mongodb/compose.yaml +++ b/samples/golang-mongodb/compose.yaml @@ -34,6 +34,12 @@ services: - db_data:/data/db # The following option will provision a managed MongoDB instance, eg. DocumentDB on AWS. x-defang-mongodb: true + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M volumes: db_data: diff --git a/samples/hasura/compose.yaml b/samples/hasura/compose.yaml index be80f0e1..ffac731a 100644 --- a/samples/hasura/compose.yaml +++ b/samples/hasura/compose.yaml @@ -31,3 +31,10 @@ services: - POSTGRES_USER=postgres - POSTGRES_DB=postgres - POSTGRES_PASSWORD + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/huginn/compose.yaml b/samples/huginn/compose.yaml index 62321efe..21b768c2 100644 --- a/samples/huginn/compose.yaml +++ b/samples/huginn/compose.yaml @@ -34,3 +34,10 @@ services: - mode: host target: 5432 published: 5432 + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/jupyter-postgres/compose.yaml b/samples/jupyter-postgres/compose.yaml index fd5cb27d..94e37244 100644 --- a/samples/jupyter-postgres/compose.yaml +++ b/samples/jupyter-postgres/compose.yaml @@ -33,3 +33,10 @@ services: test: ["CMD-SHELL", "pg_isready -U postgres"] environment: POSTGRES_PASSWORD: + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/nextjs-postgres/compose.yaml b/samples/nextjs-postgres/compose.yaml index 4c6ebc11..7e5483f9 100644 --- a/samples/nextjs-postgres/compose.yaml +++ b/samples/nextjs-postgres/compose.yaml @@ -29,4 +29,10 @@ services: ports: - target: 5432 published: 5432 - mode: host \ No newline at end of file + mode: host + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file diff --git a/samples/redis-js/compose.yaml b/samples/redis-js/compose.yaml index fa536f1f..e4e48a63 100644 --- a/samples/redis-js/compose.yaml +++ b/samples/redis-js/compose.yaml @@ -16,3 +16,10 @@ services: published: 6379 protocol: tcp mode: host + + # Adjust resources as needed + #deploy: + # resources: + # reservations: + # cpus: "1.0" + # memory: 512M \ No newline at end of file