-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (74 loc) · 1.95 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
accounts:
image: ${IMAGE}
container_name: accounts
init: true
volumes: &volumes
- ${HOME}/code/accounts:/app/code/accounts
- ${HOME}/code/ledger:/app/code/ledger
labels: &labels
com.centurylinklabs.watchtower.no-pull: true
restart: unless-stopped
networks: &networks
- cloudflare
accounts_hourly:
image: ${IMAGE}
profiles: [ "scripts" ]
container_name: accounts_hourly
volumes: *volumes
labels: *labels
networks: *networks
command: "/app/code/accounts/finance_hourly.py"
accounts_daily:
image: ${IMAGE}
profiles: [ "scripts" ]
container_name: accounts_daily
volumes: *volumes
environment: &daily_environment
- FRED_API_KEY=${FRED_API_KEY}
labels: *labels
networks: *networks
depends_on:
selenium:
condition: service_healthy
command: "/app/code/accounts/finance_daily.py"
accounts_daily_script:
image: ${IMAGE}
profiles: [ "scripts" ]
container_name: accounts_daily_script
volumes: *volumes
environment: *daily_environment
labels: *labels
networks: *networks
depends_on:
selenium:
condition: service_healthy
command: "/app/code/accounts/${SCRIPT}"
selenium:
image: selenium/standalone-chromium
profiles: [ "scripts" ]
container_name: selenium
shm_size: 2g
environment: &selenium_environment
- SE_ENABLE_TRACING=false
networks: *networks
ports:
- "7900:7900"
healthcheck:
test: &selenium-healthcheck [ "CMD", "/opt/bin/check-grid.sh", "--host", "0.0.0.0", "--port", "4444" ]
selenium-dev:
image: selenium/standalone-chromium
profiles: [ "scripts" ]
container_name: selenium-dev
shm_size: 2g
environment: *selenium_environment
networks: *networks
ports:
- "7901:7900"
- "4444:4444"
healthcheck:
test: *selenium-healthcheck
networks:
cloudflare:
name: cloudflare
external: true