Add docker-compose

This commit is contained in:
Maxim Portnyagin 2022-05-30 18:14:02 +04:00
parent bd6188eeb7
commit b9156bb913
No known key found for this signature in database
GPG key ID: 8F27C63672B69287
4 changed files with 53 additions and 43 deletions

38
docker-compose.yml Normal file
View file

@ -0,0 +1,38 @@
version: '3'
services:
tor:
tty: true
stdin_open: true
build:
context: .
dockerfile: Dockerfile.tor
networks:
- 0net-network
ports:
- "9050:9050"
- "9051:9051"
environment: &tor-environments
TOR_CONTROL_PASSWD: some_password
TOR_SOCKS_PORT: 9050
TOR_CONTROL_PORT: 9051
0net:
tty: true
stdin_open: true
build:
context: .
networks:
- 0net-network
volumes:
- 0net-data:/app/data
ports:
- "26552:26552"
- "43110:43110"
depends_on:
- tor
environment:
TOR_ENABLED: enable
<<: *tor-environments
volumes:
0net-data:
networks:
0net-network: