Working connections between the docker containers

This commit is contained in:
Dalf 2019-07-02 18:24:26 +02:00
parent 5d75c112ca
commit 5d5a5353ac
1 changed files with 8 additions and 5 deletions

View File

@ -11,15 +11,16 @@ services:
searx: searx:
ipv4_address: 10.10.10.2 ipv4_address: 10.10.10.2
command: -email ${LETSENCRYPT_EMAIL} -agree=true -log stdout -host ${SEARX_HOSTNAME} -conf /etc/Caddyfile command: -email ${LETSENCRYPT_EMAIL} -agree=true -log stdout -host ${SEARX_HOSTNAME} -conf /etc/Caddyfile
restart: always
# -quic=true -http2=true
volumes: volumes:
- ./Caddyfile:/etc/Caddyfile - ./Caddyfile:/etc/Caddyfile
- ./caddy:/root/.caddy - ./caddy:/root/.caddy
environment:
- SEARX_HOSTNAME=${SEARX_HOSTNAME}
# filtron: # filtron:
# image: filtron # image: filtron
# hostname: filtron # hostname: filtron
# restart: always
# networks: # networks:
# searx: # searx:
# ipv4_address: 10.10.10.3 # ipv4_address: 10.10.10.3
@ -27,23 +28,25 @@ services:
searx: searx:
image: searx image: searx
hostname: searx hostname: searx
restart: always
networks: networks:
searx: searx:
ipv4_address: 10.10.10.4 ipv4_address: 10.10.10.4
volumes: volumes:
- ./searx:/etc/searx - ./searx:/etc/searx
environment: environment:
- BASE_URL=http://${SEARX_HOSTNAME}/ - BASE_URL=https://${SEARX_HOSTNAME}/
- MORTY_URL=http://${SEARX_HOSTNAME}/morty/ - MORTY_URL=https://${SEARX_HOSTNAME}/morty/
- MORTY_KEY=${MORTY_KEY} - MORTY_KEY=${MORTY_KEY}
morty: morty:
image: morty image: morty
hostname: morty hostname: morty
restart: always
networks: networks:
searx: searx:
ipv4_address: 10.10.10.5 ipv4_address: 10.10.10.5
command: -listen 10.10.10.5:3000 -key ${MORTY_KEY} command: -listen 10.10.10.5:3000
environment: environment:
- MORTY_KEY=${MORTY_KEY} - MORTY_KEY=${MORTY_KEY}