diff options
author | Felix <me@nutomic.com> | 2020-01-28 17:38:23 +0100 |
---|---|---|
committer | Felix <me@nutomic.com> | 2020-01-28 17:39:27 +0100 |
commit | 91234db53b772620e07925ed7f97f9d43d1fb7cc (patch) | |
tree | a6a2d6913374f82cdab2e7815e16b825ddc935e7 /ansible/templates | |
parent | 8cfd5f9266a0a93dc47ec2ab6060ee0435276aba (diff) |
Fix Ansible installation, add uninstall playbook
Diffstat (limited to 'ansible/templates')
-rw-r--r-- | ansible/templates/docker-compose.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ansible/templates/docker-compose.yml b/ansible/templates/docker-compose.yml new file mode 100644 index 00000000..96489c70 --- /dev/null +++ b/ansible/templates/docker-compose.yml @@ -0,0 +1,35 @@ +version: '3.3' + +services: + lemmy: + image: dessalines/lemmy:v0.6.5 + ports: + - "127.0.0.1:8536:8536" + restart: always + volumes: + - ./lemmy.hjson:/config/config.hjson:ro + depends_on: + - lemmy_db + - lemmy_pictshare + + lemmy_db: + image: postgres:12-alpine + environment: + - POSTGRES_USER=lemmy + - POSTGRES_PASSWORD={{ postgres_password }} + - POSTGRES_DB=lemmy + volumes: + - lemmy_db:/var/lib/postgresql/data + restart: always + + lemmy_pictshare: + image: shtripok/pictshare:latest + ports: + - "127.0.0.1:8537:80" + volumes: + - lemmy_pictshare:/usr/share/nginx/html/data + restart: always + +volumes: + lemmy_db: + lemmy_pictshare: |