2022-03-23 22:00:35 +00:00
|
|
|
version: '3.4'
|
|
|
|
services:
|
|
|
|
|
|
|
|
swapclient:
|
|
|
|
image: i_swapclient
|
|
|
|
container_name: swapclient
|
|
|
|
stop_grace_period: 5m
|
2024-02-04 08:25:16 +00:00
|
|
|
depends_on:
|
|
|
|
- tor
|
2022-03-23 22:00:35 +00:00
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
volumes:
|
|
|
|
- ${COINDATA_PATH}:/coindata
|
|
|
|
ports:
|
|
|
|
- "${HTML_PORT}" # Expose only to localhost, see .env
|
2022-07-31 17:33:01 +00:00
|
|
|
- "${WS_PORT}" # Expose only to localhost, see .env
|
2022-03-23 22:00:35 +00:00
|
|
|
environment:
|
|
|
|
- TZ
|
|
|
|
- TOR_PROXY_HOST
|
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "10m"
|
|
|
|
max-file: "5"
|
2022-03-27 09:28:17 +00:00
|
|
|
networks:
|
|
|
|
- tor_net
|
2022-03-23 22:00:35 +00:00
|
|
|
|
|
|
|
tor:
|
|
|
|
image: i_tor
|
|
|
|
container_name: tor
|
|
|
|
build:
|
|
|
|
context: ./tor
|
|
|
|
volumes:
|
|
|
|
- ${COINDATA_PATH}/tor/data:/var/lib/tor/
|
|
|
|
- ${COINDATA_PATH}/tor/torrc:/etc/tor/torrc
|
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "10m"
|
|
|
|
max-file: "5"
|
2022-03-27 09:28:17 +00:00
|
|
|
networks:
|
|
|
|
tor_net:
|
|
|
|
ipv4_address: 172.16.238.200
|
2022-03-23 22:00:35 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
coindata:
|
|
|
|
driver: local
|
|
|
|
|
|
|
|
networks:
|
2022-03-27 09:28:17 +00:00
|
|
|
tor_net:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: "172.16.238.0/24"
|