Skip to content

Commit

Permalink
Add disappeared docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aronmolnar committed Jul 31, 2024
1 parent 5639798 commit a9f2f6d
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/caddy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Do not modify. This file is automatically generated.
# Changes will be overwritten.
services:
caddy:
image: caddy:latest
container_name: 'sysreptor-caddy'
restart: unless-stopped
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- type: volume
source: sysreptor-caddy-data
target: /data
network_mode: "host"

volumes:
sysreptor-caddy-data:
name: sysreptor-caddy-data
29 changes: 29 additions & 0 deletions deploy/languagetool/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Do not modify. This file is automatically generated.
# Changes will be overwritten.
services:
languagetool:
build:
context: ../../languagetool
args:
CA_CERTIFICATES: ${SYSREPTOR_CA_CERTIFICATES-}
container_name: 'sysreptor-languagetool'
init: true
environment:
languagetool_dbHost: db
languagetool_dbName: reportcreator
languagetool_dbUsername: reportcreator
languagetool_dbPassword: reportcreator
HTTP_PROXY: ${HTTP_PROXY-}
HTTPS_PROXY: ${HTTPS_PROXY-}
expose:
- 8010
healthcheck:
test: ["CMD", "curl", "-f", "-so", "/dev/null", "http://localhost:8010/v2/languages"]
interval: 30s
timeout: 30s
retries: 5
start_period: 10s
restart: unless-stopped
depends_on:
db:
condition: service_healthy
80 changes: 80 additions & 0 deletions deploy/sysreptor/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Do not modify. This file is automatically generated.
# Changes will be overwritten.
name: sysreptor

services:
db:
image: 'postgres:14'
container_name: 'sysreptor-db'
environment:
POSTGRES_USER: reportcreator
POSTGRES_PASSWORD: reportcreator
POSTGRES_DB: reportcreator
PGDATA: /data
volumes:
- type: volume
source: db-data
target: /data
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U reportcreator"]
interval: 2s
timeout: 5s
retries: 30
restart: unless-stopped
stop_grace_period: 120s
redis:
image: bitnami/redis:7.2
container_name: 'sysreptor-redis'
environment:
REDIS_PASSWORD: reportcreator
expose:
- 6379
restart: unless-stopped
app:
build:
context: ../..
target: api
args:
VERSION: ${SYSREPTOR_VERSION}
CA_CERTIFICATES: ${SYSREPTOR_CA_CERTIFICATES-}
SPELLCHECK_URL: ${SYSREPTOR_SPELLCHECK_URL:-http://languagetool:8010/}
container_name: 'sysreptor-app'
init: true
volumes:
- type: volume
source: app-data
target: /data
expose:
- 8000
ports:
- ${BIND_PORT:-127.0.0.1:8000:8000}
environment:
DATABASE_HOST: db
DATABASE_NAME: reportcreator
DATABASE_USER: reportcreator
DATABASE_PASSWORD: reportcreator
REDIS_URL: redis://:reportcreator@redis:6379/0
HTTP_PROXY: ${HTTP_PROXY-}
HTTPS_PROXY: ${HTTPS_PROXY-}
env_file: ../app.env
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/utils/healthcheck/"]
interval: 30s
timeout: 30s
retries: 5
start_period: 10s
depends_on:
db:
condition: service_healthy


volumes:
db-data:
name: sysreptor-db-data
external: true
app-data:
name: sysreptor-app-data
external: true

0 comments on commit a9f2f6d

Please sign in to comment.