Skip to content

Commit

Permalink
ckan (#8): docker-ckan-stack-start.yml created
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Apr 18, 2020
1 parent a55449b commit 68dc346
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 3 deletions.
36 changes: 36 additions & 0 deletions ansible/playbooks/docker-ckan-stack-start.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
# FILE: playbooks/docker-ckan-stack-start.yml
# LICENSE: Public Domain
# DESCRIPTION:
#
# REQUIRES: pip install docker

# ansible-playbook -i inventories/etica.dev playbooks/docker-ckan-stack-start.yml

# @see https://github.com/docker/compose/issues/6361#issuecomment-462346569

- name: "docker-ckan-stack-start"
hosts: all
gather_facts: yes
tasks:

- name: "docker-ckan-stack-start | Copy docker/ckan-stack/ to [ansible user home]/ckan-stack/"
copy:
src: "{{ playbook_dir }}/../../docker/ckan-stack/"
dest: "{{ ansible_env.HOME }}/ckan-stack/"

- name: "docker-ckan-stack-start | start services"
docker_compose:
project_src: "{{ ansible_env.HOME }}/ckan-stack/"
state: present
services:
# - hello
- ckan_ckan
- ckan_postgresql
- ckan_solr
- ckan_redis
register: output

- name: "docker-ckan-stack-start | services result"
debug:
msg: "{{ output }}"
41 changes: 38 additions & 3 deletions docker/ckan-stack/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# https://github.com/ckan/ckan/wiki/How-to-Install-CKAN-2.7.3-on-CentOS7-with-Ansible
# https://github.com/UtrechtUniversity/ilab-catalog
# https://github.com/UtrechtUniversity/epos-msl
---
# FILE: docker/full-stack/docker-compose.yml
# LICENSE: Public Domain

version: "3"

# @see https://github.com/ckan/ckan/wiki/How-to-Install-CKAN-2.7.3-on-CentOS7-with-Ansible
# @see https://github.com/UtrechtUniversity/ilab-catalog
# @see https://github.com/UtrechtUniversity/epos-msl
# @see https://hub.docker.com/u/ckan
# @see https://docs.ckan.org/en/2.8/maintaining/installing/install-from-docker-compose.html
# @see https://github.com/ckan/ckan/tree/master/contrib/docker
# @see https://hub.docker.com/u/easyckan/

services:

# https://hub.docker.com/r/ckan/ckan
# docker pull ckan/ckan:latest
ckan_ckan:
image: nginxdemos/hello
labels:
- traefik.http.routers.http.rule=Host(`ckan.hxl.etica.dev`)
- traefik.http.routers.https.rule=Host(`ckan.hxl.etica.dev`)
- traefik.http.routers.https.entrypoints=https
- traefik.http.routers.https.tls=true
# - traefik.http.routers.https.tls.certresolver=letsencrypt

# https://hub.docker.com/r/ckan/postgresql
ckan_postgresql:
image: nginxdemos/hello

# docker pull ckan/solr:latest
ckan_solr:
image: nginxdemos/hello

ckan_redis:
container_name: redis
image: redis:latest
4 changes: 4 additions & 0 deletions docker/full-stack/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
# FILE: docker/full-stack/docker-compose.yml
# LICENSE: Public Domain

version: "3"

# See https://docs.docker.com/compose/django/
Expand Down

0 comments on commit 68dc346

Please sign in to comment.