forked from fsfe-system-hackers/fsfe-planet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
version: "3.9"
|
|
services:
|
|
|
|
# The main service
|
|
planet:
|
|
container_name: planet
|
|
build:
|
|
context: .
|
|
dockerfile: docker/files/planet.Dockerfile
|
|
expose:
|
|
- 80
|
|
environment:
|
|
- VIRTUAL_HOST="planet.fsfe.org,www.planet.fsfe.org"
|
|
- LETSENCRYPT_HOST="planet.fsfe.org,www.planet.fsfe.org"
|
|
- service="contact@fsfe.org"
|
|
|
|
# Implementation of onion-routing implemented as standalone docker instance that routes the exposed port
|
|
# NOTE(Krey): Used for research, designed to implement https://hub.docker.com/r/goldy/tor-hidden-service/
|
|
onion-router:
|
|
container_name: onion-router
|
|
build:
|
|
context: .
|
|
dockerfile: docker/files/onion.Dockerfile
|
|
networks:
|
|
|
|
environment:
|
|
# FIXME(Krey): Partially implemented
|
|
- ONION_USER="onionguy"
|
|
- ONION_USER_ID="8167"
|
|
- ONION_GROUP="onionguy"
|
|
- ONION_GROUP_ID="8167"
|
|
|
|
# Connect the container which exposes the service to the 'bridge' network as
|
|
# this is where the reverse proxy is
|
|
connect-bridge:
|
|
container_name: connect-bridge
|
|
image: docker:dind
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
depends_on:
|
|
- planet
|
|
- onion-router
|
|
command: docker network connect bridge planet
|
|
|