From 1d89ea04712ab1d791c40b6c396583faae5a934c Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 8 Dec 2023 16:55:21 +0100 Subject: [PATCH] deleted docker compose from discourse --- roles/docker-discourse/handlers/main.yml | 7 ---- roles/docker-discourse/tasks/main.yml | 4 --- .../templates/docker-compose.yml.j2 | 34 ------------------- 3 files changed, 45 deletions(-) delete mode 100644 roles/docker-discourse/templates/docker-compose.yml.j2 diff --git a/roles/docker-discourse/handlers/main.yml b/roles/docker-discourse/handlers/main.yml index b9d8cc4e..d971cecb 100644 --- a/roles/docker-discourse/handlers/main.yml +++ b/roles/docker-discourse/handlers/main.yml @@ -1,11 +1,4 @@ --- -#- name: recreate discourse -# command: -# cmd: docker-compose up -d --force-recreate -# chdir: "{{docker_compose_instance_directory}}" -# environment: -# COMPOSE_HTTP_TIMEOUT: 600 -# DOCKER_CLIENT_TIMEOUT: 600 - name: recreate discourse command: cmd: ./launcher rebuild app diff --git a/roles/docker-discourse/tasks/main.yml b/roles/docker-discourse/tasks/main.yml index 122f5304..3639e09a 100644 --- a/roles/docker-discourse/tasks/main.yml +++ b/roles/docker-discourse/tasks/main.yml @@ -8,10 +8,6 @@ state: directory mode: 0755 -#- name: add docker-compose.yml -# template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml -# notify: recreate discourse - - name: register directory stat: path: "{{docker_compose_instance_directory}}" diff --git a/roles/docker-discourse/templates/docker-compose.yml.j2 b/roles/docker-discourse/templates/docker-compose.yml.j2 deleted file mode 100644 index d0fe2d93..00000000 --- a/roles/docker-discourse/templates/docker-compose.yml.j2 +++ /dev/null @@ -1,34 +0,0 @@ -version: '3' - -services: - discourse: - image: discourse/base:release - depends_on: - - database - - redis - volumes: - - data:/shared - environment: - DISCOURSE_DB_HOST: database - DISCOURSE_DB_NAME: discourse - DISCOURSE_DB_USERNAME: discourse - DISCOURSE_DB_PASSWORD: {{discourse_database_password}} - DISCOURSE_REDIS_HOST: redis - ports: - - "127.0.0.1:{{http_port}}:80" - database: - image: postgres:latest - environment: - POSTGRES_DB: discourse - POSTGRES_USER: discourse - POSTGRES_PASSWORD: {{discourse_database_password}} - volumes: - - database:/var/lib/postgresql/data - redis: - image: redis:latest - volumes: - - redis_data:/data -volumes: - database: - data: - redis_data: \ No newline at end of file