-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathdocker-compose.yml
executable file
·74 lines (69 loc) · 1.62 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
services:
searx:
container_name: searx
image: searx/searx:1.1.0-69-75b859d2
hostname: searx
restart: always
networks:
default:
ipv4_address: 10.10.10.3
command: ${SEARX_COMMAND:-}
volumes:
- ./Searx/searx:/etc/searx:rw
environment:
- TZ=${TZ}
- BIND_ADDRESS=10.10.10.3:8080
- BASE_URL=https://${SEARX_HOSTNAME}/
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTPS_PROXY}
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
- DAC_OVERRIDE
db_watcher:
container_name: db_watcher
image: mysql:8.0.40
command: mysqld --default-authentication-plugin=mysql_native_password
volumes:
- db_data:/var/lib/mysql
- db_log:/var/log/mysql
restart: always
networks:
default:
ipv4_address: 10.10.10.5
environment:
TZ: ${TZ}
MYSQL_DATABASE: 'db_watcher'
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
watcher:
container_name: watcher
image: felix83000/watcher:latest
depends_on:
- db_watcher
- searx
restart: always
networks:
default:
ipv4_address: 10.10.10.6
tty: true
env_file:
- .env
environment:
no_proxy: "10.10.10.3,10.10.10.5,10.10.10.7"
ports:
- "9002:9002"
command: sh -c '/tmp/wait-for-mysql.sh db_watcher 3306 ${DB_USER} ${DB_PASSWORD} db_watcher -- python manage.py runserver 0.0.0.0:9002'
networks:
default:
ipam:
driver: default
config:
- subnet: 10.10.10.0/24
volumes:
db_data: {}
db_log: {}