The FSFE planet, a blog aggregator of posts from our community https://planet.fsfe.org
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.

docker-compose.yml 629B

1234567891011121314151617181920212223
  1. version: '3'
  2. services:
  3. planet:
  4. container_name: planet
  5. build: .
  6. image: planet
  7. restart: always
  8. expose:
  9. - 80
  10. environment:
  11. - VIRTUAL_HOST=planet.fsfe.org,www.planet.fsfe.org
  12. - LETSENCRYPT_HOST=planet.fsfe.org,www.planet.fsfe.org
  13. - LETSENCRYPT_EMAIL=contact@fsfe.org
  14. # Connect the container which exposes the service to the 'bridge' network as
  15. # this is where the reverse proxy is
  16. connect-bridge:
  17. image: docker:dind
  18. volumes:
  19. - /var/run/docker.sock:/var/run/docker.sock
  20. depends_on:
  21. - planet
  22. command: /bin/sh -c 'docker network connect bridge planet'