-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 942 Bytes
/
docker-compose.yml
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
48
49
50
version: "3.8"
services:
backend:
container_name: market_data_notification
build:
context: .
target: dev
secrets:
- source: ssh_private_key
mode: 0600
working_dir: /app
env_file: .env
command: poetry run python3 main.py
depends_on:
- redis
- chrome
ports:
- "8080:8080"
volumes:
- ./src:/app/src
environment:
ENV: dev
redis:
container_name: redis
build:
context: .
dockerfile: Dockerfile-redis
volumes:
- redis_data:/data
ports:
- 6379:6379
chrome:
# https://github.com/seleniumhq-community/docker-seleniarm
image: seleniarm/standalone-chromium:114.0-20230615
container_name: chrome
# shm_size: 2gb
ports:
- "4444:4444"
- "5900:5900"
- "7900:7900"
# volumes:
# - /dev/shm
volumes:
redis_data:
secrets:
ssh_private_key:
file: secret/id_rsa