diff --git a/deps/test-task-2025-06-30-v1/.dockerignore b/deps/test-task-2025-06-30-v1/.dockerignore index 091a676..82bda8f 100644 --- a/deps/test-task-2025-06-30-v1/.dockerignore +++ b/deps/test-task-2025-06-30-v1/.dockerignore @@ -1,3 +1,4 @@ .venv tmp .git +.env diff --git a/deps/test-task-2025-06-30-v1/.gitignore b/deps/test-task-2025-06-30-v1/.gitignore index 0f82ab8..a6235a1 100644 --- a/deps/test-task-2025-06-30-v1/.gitignore +++ b/deps/test-task-2025-06-30-v1/.gitignore @@ -1,2 +1,3 @@ !.tmuxp/ !python +.env/ diff --git a/deps/test-task-2025-06-30-v1/docker-compose.yml b/deps/test-task-2025-06-30-v1/docker-compose.yml index 2c5df35..1b76fe5 100644 --- a/deps/test-task-2025-06-30-v1/docker-compose.yml +++ b/deps/test-task-2025-06-30-v1/docker-compose.yml @@ -22,3 +22,28 @@ services: 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 diff --git a/deps/test-task-2025-06-30-v1/python/online/fxreader/pr34/test_task_2025_06_30_v1/tickers/__init__.py b/deps/test-task-2025-06-30-v1/python/online/fxreader/pr34/test_task_2025_06_30_v1/tickers/__init__.py new file mode 100644 index 0000000..e69de29