-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hxl-proxy (#2): started docker/full-stack
- Loading branch information
Showing
7 changed files
with
78 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
# FILE: playbooks/docker-full-stack-start.yml | ||
# LICENSE: Public Domain | ||
# DESCRIPTION: | ||
# | ||
# REQUIRES: pip install docker | ||
|
||
# ansible-playbook -i inventories/etica.dev playbooks/docker-full-stack-start.yml | ||
|
||
- name: Run using a project directory | ||
hosts: all | ||
gather_facts: yes | ||
tasks: | ||
# - name: Tear down existing services | ||
# docker_compose: | ||
# project_src: flask | ||
# state: absent | ||
|
||
- name: Create and start services | ||
docker_compose: | ||
project_src: "{{ playbook_dir }}/../../docker/full-stack" | ||
register: output | ||
|
||
- debug: | ||
var: output |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# FILE: playbooks/docker-setup-host.yml | ||
# LICENSE: Public Domain | ||
# DESCRIPTION: Install docker on the host | ||
# | ||
# REQUIES: geerlingguy.docker Role (https://github.com/geerlingguy/ansible-role-docker) | ||
# REQUIES: geerlingguy.pip Role (https://github.com/geerlingguy/ansible-role-pip) | ||
|
||
# ansible-playbook -i inventories/etica.dev playbooks/docker-setup-host.yml | ||
|
||
- hosts: all | ||
vars: | ||
|
||
# By default, geerlingguy.pip will use pip from python 2.7. | ||
# You can force on your inventory use another pip. On case of | ||
# Ubuntu, you can use: | ||
# pip_executable: "python3-pip" | ||
|
||
|
||
pip_install_packages: | ||
- name: docker | ||
roles: | ||
- geerlingguy.pip | ||
- geerlingguy.docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: "3" | ||
|
||
# See https://docs.docker.com/compose/django/ | ||
|
||
services: | ||
# hxldash: | ||
|
||
hxl-proxy: | ||
image: unocha/hxl-proxy:latest | ||
command: python manage.py runserver 0.0.0.0:8000 | ||
depends_on: | ||
- postgres_hxl-proxy | ||
|
||
postgres_hxl-proxy: | ||
image: postgres |