2018-10-09 14:44:39 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
pmpc:
|
|
|
|
image: pmpc
|
|
|
|
container_name: pmpc
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- HUGO_BASE_URL=https://publiccode.eu/
|
|
|
|
- VIRTUAL_HOST=publiccode.eu,www.publiccode.eu
|
|
|
|
- LETSENCRYPT_HOST=publiccode.eu,www.publiccode.eu
|
|
|
|
- LETSENCRYPT_EMAIL=contact@fsfe.org
|
|
|
|
logging:
|
|
|
|
driver: json-file
|
|
|
|
options:
|
|
|
|
max-size: "5m"
|
|
|
|
max-file: "5"
|
|
|
|
volumes:
|
|
|
|
- /srv/pmpc-cred:/srv/cred:ro
|
2018-10-09 15:12:35 +02:00
|
|
|
|
|
|
|
connect-bridge:
|
|
|
|
image: docker:dind
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
depends_on:
|
|
|
|
- pmpc
|
|
|
|
command: sh -c 'docker network connect bridge pmpc'
|