[+] update docker for services
This commit is contained in:
parent
83a09207d6
commit
ad7bff67c4
22
deps/test-task-2025-06-30-v1/docker-compose.yml
vendored
22
deps/test-task-2025-06-30-v1/docker-compose.yml
vendored
@ -4,16 +4,13 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:9004:6379
|
- 127.0.0.1:9004:6379
|
||||||
|
|
||||||
web:
|
web: &web
|
||||||
image: online.fxreader.pr34.test_task_2025_06_30_v1:dev
|
image: online.fxreader.pr34.test_task_2025_06_30_v1:dev
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./docker/web/Dockerfile
|
dockerfile: ./docker/web/Dockerfile
|
||||||
target: web
|
target: web
|
||||||
environment:
|
environment:
|
||||||
volumes:
|
|
||||||
- .:/app:ro
|
|
||||||
- ./tmp/cache:/app/tmp/cache:rw
|
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@ -24,8 +21,21 @@ services:
|
|||||||
limits:
|
limits:
|
||||||
cpus: '0.5'
|
cpus: '0.5'
|
||||||
memory: 128M
|
memory: 128M
|
||||||
ports:
|
|
||||||
- 127.0.0.1:9003:80
|
web-dev:
|
||||||
|
<<: *web
|
||||||
|
volumes:
|
||||||
|
- .:/app:ro
|
||||||
|
- ./tmp/cache:/app/tmp/cache:rw
|
||||||
|
|
||||||
|
emcont_worker:
|
||||||
|
<<: *web
|
||||||
|
image: online.fxreader.pr34.test_task_2025_06_30_v1:dev
|
||||||
|
environment:
|
||||||
|
command:
|
||||||
|
- python3
|
||||||
|
- -m
|
||||||
|
- online.fxreader.pr34.test_task_2025_06_30_v1.async_api.app
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
image: docker.io/postgres:14.18-bookworm@sha256:c0aab7962b283cf24a0defa5d0d59777f5045a7be59905f21ba81a20b1a110c9
|
image: docker.io/postgres:14.18-bookworm@sha256:c0aab7962b283cf24a0defa5d0d59777f5045a7be59905f21ba81a20b1a110c9
|
||||||
|
@ -30,5 +30,21 @@ RUN apt-get update -yy && apt-get install -yy tini
|
|||||||
|
|
||||||
FROM base as web
|
FROM base as web
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
--mount=type=bind,source=releases/whl,target=/app/releases/whl \
|
||||||
|
--mount=type=cache,target=/root/.cache/pip \
|
||||||
|
--mount=type=cache,target=/root/.cache/uv \
|
||||||
|
uv pip \
|
||||||
|
install \
|
||||||
|
--system \
|
||||||
|
--break-system-packages \
|
||||||
|
--no-index \
|
||||||
|
-f releases/whl \
|
||||||
|
'online.fxreader.pr34.test_task_2025_06_30_v1==0.1'
|
||||||
|
|
||||||
ENTRYPOINT ["tini", "--"]
|
ENTRYPOINT ["tini", "--"]
|
||||||
CMD ["/usr/bin/python3", "-m", "d1.reload"]
|
CMD [ \
|
||||||
|
"python3", \
|
||||||
|
"-m", \
|
||||||
|
"online.fxreader.pr34.test_task_2025_06_30_v1.async_api.app" \
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user