Spaces:
Running on Zero
Running on Zero
File size: 859 Bytes
b411c37 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | services:
nginx:
build:
context: ./docker/nginx
dockerfile: Dockerfile
image: ocr1-nginx:1.0.0
restart: unless-stopped
ports:
- "80:80"
depends_on:
- app
networks:
- ocr_internal
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 64M
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile
image: ocr1-app:1.0.0
restart: unless-stopped
env_file:
- .env
environment:
GRADIO_SERVER_NAME: 0.0.0.0
PORT: 7860
user: "1000:1000"
expose:
- "7860"
networks:
- ocr_internal
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 4G
networks:
ocr_internal:
driver: bridge
|