Compare commits
2 Commits
85dcbd8808
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d494ab34e | |||
| 1a844132e6 |
12
stack.yaml
12
stack.yaml
@@ -34,7 +34,7 @@ services:
|
|||||||
cpus: '1.00'
|
cpus: '1.00'
|
||||||
memory: 512M
|
memory: 512M
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres -d uzxarid"]
|
test: [ "CMD-SHELL", "pg_isready -U postgres -d uzxarid" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -47,7 +47,7 @@ services:
|
|||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
command: ["redis-server", "--appendonly", "yes"]
|
command: [ "redis-server", "--appendonly", "yes" ]
|
||||||
networks:
|
networks:
|
||||||
- uzxarid
|
- uzxarid
|
||||||
volumes:
|
volumes:
|
||||||
@@ -72,7 +72,7 @@ services:
|
|||||||
cpus: '0.50'
|
cpus: '0.50'
|
||||||
memory: 256M
|
memory: 256M
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: [ "CMD", "redis-cli", "ping" ]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -117,7 +117,7 @@ services:
|
|||||||
cpus: '1.50'
|
cpus: '1.50'
|
||||||
memory: 1024M
|
memory: 1024M
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://localhost:8000/health/ || exit 1"]
|
test: [ "CMD-SHELL", "curl -f http://localhost:8000/health/ || exit 1" ]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
timeout: 15s
|
timeout: 15s
|
||||||
retries: 5
|
retries: 5
|
||||||
@@ -133,7 +133,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- mode: ingress
|
- mode: ingress
|
||||||
target: 80
|
target: 80
|
||||||
published: ${PORT:?enviromentda PORT topilmadi}
|
published: 8034
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
volumes:
|
volumes:
|
||||||
- type: bind
|
- type: bind
|
||||||
@@ -167,7 +167,7 @@ services:
|
|||||||
- /var/run
|
- /var/run
|
||||||
- /var/tmp
|
- /var/tmp
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://localhost/health/ || exit 1"]
|
test: [ "CMD-SHELL", "curl -f http://localhost/health/ || exit 1" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user