50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
services:
|
|
redis:
|
|
image: docker.io/redis:latest-alpine@sha256:e71b4cb00ea461ac21114cff40ff12fb8396914238e1e9ec41520b2d5a4d3423
|
|
|
|
web:
|
|
image: online.fxreader.pr34.test_task_2025_06_30_v1:dev
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/web/Dockerfile
|
|
target: web
|
|
environment:
|
|
volumes:
|
|
- .:/app:ro
|
|
- ./tmp/cache:/app/tmp/cache:rw
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: 10m
|
|
max-file: "3"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 128M
|
|
|
|
postgresql:
|
|
image: docker.io/postgres:14.18-bookworm@sha256:c0aab7962b283cf24a0defa5d0d59777f5045a7be59905f21ba81a20b1a110c9
|
|
# restart: always
|
|
# set shared memory limit when using docker compose
|
|
shm_size: 128mb
|
|
# or set shared memory limit when deploy via swarm stack
|
|
#volumes:
|
|
# - type: tmpfs
|
|
# target: /dev/shm
|
|
# tmpfs:
|
|
# size: 134217728 # 128*2^20 bytes = 128Mb
|
|
env_file: .env/postgresql.env
|
|
# environment:
|
|
# POSTGRES_PASSWORD: example
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: 10m
|
|
max-file: "3"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 128M
|