-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add infrastructure dir and adapt docker file locations
- Loading branch information
Showing
11 changed files
with
114 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[defaults] | ||
inventory = ./hosts | ||
roles_path = ./roles | ||
retry_files_enabled = False |
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,19 @@ | ||
--- | ||
- hosts: all | ||
vars: | ||
ansible_python_interpreter: /usr/bin/python3 | ||
tasks: | ||
- name: Login to GitHub Container Registry | ||
ansible.builtin.shell: | ||
cmd: echo "{{ docker_password }}" | docker login "{{ docker_host }}" --username "{{ docker_username }}" --password-stdin | ||
- name: Execute Docker deployment | ||
ansible.builtin.include_role: | ||
name: ansible-docker-deployment | ||
vars: | ||
docker_deployment_project_name: '{{ project_name }}' | ||
docker_deployment_release_name: '{{ release_name }}' | ||
docker_deployment_release_files: | ||
- local: ../docker-compose.run.yml | ||
remote: docker-compose.yml | ||
- local: ../../.env | ||
remote: .env |
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,5 @@ | ||
[test] | ||
docker03.testingmachine.eu ansible_user='noi-techpark-bot' ansible_ssh_common_args='-o StrictHostKeyChecking=no' | ||
|
||
[prod] | ||
docker03.opendatahub.bz.it ansible_user='noi-techpark-bot' ansible_ssh_common_args='-o StrictHostKeyChecking=no' |
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,2 @@ | ||
- src: git+https://github.com/noi-techpark/ansible-docker-deployment.git | ||
version: "2.0" |
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,2 @@ | ||
* | ||
!.gitignore |
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 @@ | ||
services: | ||
|
||
conferences: | ||
image: ${DOCKER_IMAGE_CONFERENCES}:${DOCKER_TAG} | ||
env_file: | ||
- ../.env | ||
build: | ||
context: ../ | ||
dockerfile: infrastructure/docker/Dockerfile.conferences | ||
|
||
push_notifications: | ||
image: ${DOCKER_IMAGE_PUSH_NOTIFICATIONS}:${DOCKER_TAG} | ||
env_file: | ||
- ../.env | ||
build: | ||
context: ../ | ||
dockerfile: infrastructure/docker/Dockerfile.push_notifications | ||
|
||
telegram: | ||
image: ${DOCKER_IMAGE_TELEGRAM}:${DOCKER_TAG} | ||
env_file: | ||
- ../.env | ||
build: | ||
context: ../ | ||
dockerfile: infrastructure/docker/Dockerfile.telegram |
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,53 @@ | ||
services: | ||
|
||
conferences: | ||
image: ${DOCKER_IMAGE_CONFERENCES}:${DOCKER_TAG} | ||
command: uvicorn main:app --host 0.0.0.0 --reload # sleep 9999999999 | ||
env_file: | ||
- ../.env | ||
ports: | ||
- "${SERVER_PORT_CONFERENCES}:8000" | ||
volumes: | ||
- opencon-logs:/var/log/opencon | ||
|
||
push_notifications: | ||
image: ${DOCKER_IMAGE_PUSH_NOTIFICATIONS}:${DOCKER_TAG} | ||
command: python workers/push_notifications.py # sleep 99999 | ||
env_file: | ||
- ../.env | ||
ports: | ||
- "${API_SERVER_PORT_PUSH_NOTIFICATIONS}:8080" | ||
volumes: | ||
- opencon-logs:/var/log/opencon | ||
|
||
telegram: | ||
image: ${DOCKER_IMAGE_TELEGRAM}:${DOCKER_TAG} | ||
command: python workers/telegram.py # sleep 99999 | ||
env_file: | ||
- ../.env | ||
ports: | ||
- "${API_SERVER_PORT_TELEGRAM}:8080" | ||
volumes: | ||
- opencon-logs:/var/log/opencon | ||
|
||
postgres: | ||
image: "postgres:14-alpine" | ||
environment: | ||
POSTGRES_DB: sfscon | ||
POSTGRES_USER: sfscon | ||
POSTGRES_PASSWORD: sfscon | ||
hostname: postgres | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
|
||
redis: | ||
command: redis-server | ||
hostname: redis | ||
image: redis:alpine | ||
labels: | ||
NAME: redis | ||
|
||
volumes: | ||
opencon-logs: | ||
postgres-data: | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.