Skip to content

Commit

Permalink
[mod] docker-compose.yaml: remove hardcoded IP
Browse files Browse the repository at this point in the history
  • Loading branch information
dalf committed Apr 10, 2020
1 parent 205adf8 commit 92cdb70
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
6 changes: 3 additions & 3 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
to /searx-checker/status.json
}

proxy / 127.0.0.1:4040 {
proxy / localhost:4040 {
transparent
header_upstream X-Forwarded-TlsProto {tls_protocol}
header_upstream X-Forwarded-TlsCipher {tls_cipher}
Expand All @@ -72,11 +72,11 @@
}

basicauth /filtron {$FILTRON_USER} {$FILTRON_PASSWORD}
proxy /filtron/rules 127.0.0.1:4041 {
proxy /filtron/rules localhost:4041 {
without /filtron
}

proxy /morty 127.0.0.1:3000
proxy /morty localhost:3000

limits 10KB

Expand Down
32 changes: 11 additions & 21 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ services:
filtron:
container_name: filtron
image: dalf/filtron
hostname: filtron
restart: always
ports:
- 127.0.0.1:4040:4040
- 127.0.0.1:4041:4041
- 4040:4040
- 4041:4041
networks:
searx:
ipv4_address: 10.10.10.3
command: -listen 10.10.10.3:4040 -api 10.10.10.3:4041 -target 10.10.10.4:8080
- searx
command: -listen 0.0.0.0:4040 -api 0.0.0.0:4041 -target searx:8080
volumes:
- ./rules.json:/etc/filtron/rules.json:rw
read_only: true
Expand All @@ -48,16 +46,14 @@ services:
searx:
container_name: searx
image: searx/searx:latest
hostname: searx
restart: always
networks:
searx:
ipv4_address: 10.10.10.4
- searx
command: ${SEARX_COMMAND:-}
volumes:
- ./searx:/etc/searx:rw
environment:
- BIND_ADDRESS=10.10.10.4:8080
- BIND_ADDRESS=0.0.0.0:8080
- BASE_URL=https://${SEARX_HOSTNAME}/
- MORTY_URL=https://${SEARX_HOSTNAME}/morty/
- MORTY_KEY=${MORTY_KEY}
Expand All @@ -72,14 +68,12 @@ services:
morty:
container_name: morty
image: dalf/morty
hostname: morty
restart: always
ports:
- 127.0.0.1:3000:3000
- 3000:3000
networks:
searx:
ipv4_address: 10.10.10.5
command: -listen 10.10.10.5:3000 -timeout 6 -ipv6
- searx
command: -listen 0.0.0.0:3000 -timeout 6 -ipv6
environment:
- MORTY_KEY=${MORTY_KEY}
logging:
Expand All @@ -91,21 +85,17 @@ services:
searx-checker:
container_name: searx-checker
image: searx/searx-checker
hostname: searx-checker
restart: always
networks:
searx:
ipv4_address: 10.10.10.6
command: -cron -o html/data/status.json http://10.10.10.4:8080
- searx
command: -cron -o html/data/status.json http://searx:8080
volumes:
- searx-checker:/usr/local/searx-checker/html/data:rw

networks:
searx:
ipam:
driver: default
config:
- subnet: 10.10.10.0/24

volumes:
searx-checker:

0 comments on commit 92cdb70

Please sign in to comment.