2017-06-13 08:54:28 +02:00
|
|
|
---
|
|
|
|
- hosts: lund.fsfeurope.org
|
|
|
|
remote_user: root
|
|
|
|
|
|
|
|
tasks:
|
2017-06-13 11:39:31 +02:00
|
|
|
- name: build the pmpc container
|
2017-09-08 17:16:33 +02:00
|
|
|
command: docker build -t pmpc https://git.fsfe.org/pmpc/website.git
|
2017-06-13 08:54:28 +02:00
|
|
|
|
|
|
|
- name: run pmpc
|
|
|
|
docker_container:
|
|
|
|
name: pmpc
|
|
|
|
image: pmpc
|
|
|
|
state: started
|
|
|
|
restart: yes
|
2018-04-16 14:06:52 +02:00
|
|
|
restart_policy: always
|
2017-06-13 08:54:28 +02:00
|
|
|
env:
|
2017-06-15 13:36:49 +02:00
|
|
|
HUGO_BASE_URL: https://publiccode.eu/
|
2017-09-08 08:21:18 +02:00
|
|
|
VIRTUAL_HOST: publiccode.eu,www.publiccode.eu
|
2017-09-08 08:51:28 +02:00
|
|
|
LETSENCRYPT_HOST: publiccode.eu,www.publiccode.eu
|
2017-06-15 13:36:49 +02:00
|
|
|
LETSENCRYPT_EMAIL: jonas@fsfe.org
|
2017-06-13 10:14:58 +02:00
|
|
|
volumes:
|
2017-09-04 12:34:06 +02:00
|
|
|
- "/srv/forms/pmpc:/usr/share/blog/data/signatures:ro"
|
2017-09-12 09:56:30 +02:00
|
|
|
- "/srv/pmpc-cred:/srv/cred:ro"
|
2017-09-11 22:14:19 +02:00
|
|
|
|