2018-10-09 14:44:39 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
2021-03-05 13:07:35 +01:00
|
|
|
|
2018-10-09 14:44:39 +02:00
|
|
|
pmpc:
|
|
|
|
container_name: pmpc
|
2021-03-05 13:07:35 +01:00
|
|
|
build: .
|
|
|
|
image: pmpc
|
2018-10-09 14:44:39 +02:00
|
|
|
restart: always
|
|
|
|
logging:
|
|
|
|
driver: json-file
|
|
|
|
options:
|
|
|
|
max-size: "5m"
|
|
|
|
max-file: "5"
|
2021-03-05 13:07:35 +01:00
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=publiccode.eu,www.publiccode.eu
|
2021-04-29 12:23:57 +02:00
|
|
|
- VIRTUAL_PORT=8080
|
2021-03-05 13:07:35 +01:00
|
|
|
- LETSENCRYPT_HOST=publiccode.eu,www.publiccode.eu
|
|
|
|
- LETSENCRYPT_EMAIL=contact@fsfe.org
|
2018-10-09 15:12:35 +02:00
|
|
|
|
2021-03-05 13:07:35 +01:00
|
|
|
# Connect the container which exposes the service to the 'bridge' network as
|
|
|
|
# this is where the reverse proxy is
|
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'
|