Docker-Runit/bouncer/grey-ooo-test.yml
Matthew Baggett 2fd5c62074
Feature/bouncer (#7)
* Initial work

* Setup script stub

* Wrap runit and call dos2unix beforehand.

* Working to the point I need to make it sync in and out of s3.

* Seems like we're done and its working.

* Add build process.

* Add build process.

* Bugfixes discovered during deployment.

* Copy certs into /live because certbot is a pain.

* More elegant about hammering letsencrypt.

* Working!
2021-06-06 17:38:46 +02:00

43 lines
1 KiB
YAML

version: "3.4"
services:
bouncer:
image: benzine/bouncer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- BOUNCER_LETSENCRYPT_MODE=production
- BOUNCER_LETSENCRYPT_EMAIL=matthew@baggett.me
- BOUNCER_S3_ENDPOINT=http://grey.ooo:9000
- BOUNCER_S3_KEY_ID=geusebio
- BOUNCER_S3_KEY_SECRET=teblE0neTf2NQcVFaZIRkSF44RscyQ3G
- BOUNCER_S3_BUCKET=bouncer-certificates
- BOUNCER_S3_USE_PATH_STYLE_ENDPOINT="yes"
ports:
- 80:80
- 443:443
web-a:
image: benzine/php:nginx
volumes:
- ./test/public-web-a:/app/public
environment:
- BOUNCER_DOMAIN=a.web.grey.ooo
- BOUNCER_LETSENCRYPT=true
web-b:
image: benzine/php:nginx
volumes:
- ./test/public-web-b:/app/public
environment:
- BOUNCER_DOMAIN=b.web.grey.ooo
- BOUNCER_LETSENCRYPT=true
web-c:
image: benzine/php:nginx
volumes:
- ./test/public-web-c:/app/public
environment:
- BOUNCER_DOMAIN=c.web.grey.ooo
- BOUNCER_LETSENCRYPT=true