28 lines
681 B
YAML
28 lines
681 B
YAML
version: '3'
|
|
services:
|
|
|
|
pmpc:
|
|
container_name: pmpc
|
|
build: .
|
|
image: pmpc
|
|
restart: always
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "5m"
|
|
max-file: "5"
|
|
environment:
|
|
- VIRTUAL_HOST=publiccode.eu,www.publiccode.eu
|
|
- LETSENCRYPT_HOST=publiccode.eu,www.publiccode.eu
|
|
- LETSENCRYPT_EMAIL=contact@fsfe.org
|
|
|
|
# Connect the container which exposes the service to the 'bridge' network as
|
|
# this is where the reverse proxy is
|
|
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'
|