-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (68 loc) · 1.54 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
services:
vpn:
container_name: hoomes_vpn
image: ghcr.io/bubuntux/nordlynx
restart: always
hostname: vpn
ports:
- "5001:5001"
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PRIVATE_KEY=$NORD_VPN_PRIVATE_KEY
- QUERY=filters\[country_id\]=106 # ITALY
- NET_LOCAL=192.168.0.0/16
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.conf.all.rp_filter=2
- net.ipv6.conf.all.disable_ipv6=1
backend:
container_name: hoomes_backend
image: pinkynrg/hoomes_backend
restart: always
environment:
REDIS_HOST: localhost
REDIS_PORT: 6379
network_mode: service:vpn
command: poetry run python server.py
volumes:
- /opt/hoomes/data.db:/app/data.db
depends_on:
- redis
- vpn
worker:
container_name: hoomes_workers
image: pinkynrg/hoomes_backend
restart: always
environment:
REDIS_HOST: localhost
REDIS_PORT: 6379
command: poetry run python worker.py
network_mode: service:vpn
volumes:
- /opt/hoomes/data.db:/app/data.db
depends_on:
- redis
- vpn
redis:
container_name: hoomes_redis
image: redis:7.2.2
restart: always
network_mode: service:vpn
depends_on:
- vpn
frontend:
container_name: hoomes_frontend
image: pinkynrg/hoomes_frontend
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- backend
- vpn
networks:
- hoomes
networks:
hoomes:
driver: bridge