Остання активність 23 hours ago

mariushosting ревизій цього gist 23 hours ago. До ревизії

1 file changed, 130 insertions

dawarich.yaml(файл створено)

@@ -0,0 +1,130 @@
1 + services:
2 + dawarich_db:
3 + image: postgis/postgis:17-3.5-alpine
4 + container_name: Dawarich-DB
5 + hostname: dawarich_db
6 + healthcheck:
7 + test: ["CMD-SHELL", "pg_isready -U postgres -d dawarich_development"]
8 + interval: 10s
9 + retries: 5
10 + start_period: 30s
11 + timeout: 10s
12 + volumes:
13 + - /volume1/docker/dawarich/db:/var/lib/postgresql/data:rw
14 + - /volume1/docker/dawarich/shared:/var/shared:rw
15 + environment:
16 + POSTGRES_USER: postgres
17 + POSTGRES_PASSWORD: password
18 + POSTGRES_DB: dawarich_development
19 + shm_size: 1G
20 + restart: on-failure:5
21 +
22 + dawarich_redis:
23 + image: redis:7.4-alpine
24 + command: redis-server
25 + container_name: Dawarich-REDIS
26 + user: 1026:100
27 + healthcheck:
28 + test: ["CMD-SHELL", "redis-cli ping || exit 1"]
29 + volumes:
30 + - /volume1/docker/dawarich/redis:/data:rw
31 + environment:
32 + TZ: Europe/Bucharest
33 + restart: on-failure:5
34 +
35 + dawarich_app:
36 + image: freikin/dawarich:latest
37 + container_name: Dawarich
38 + volumes:
39 + - /volume1/docker/dawarich/public:/var/app/public:rw
40 + - /volume1/docker/dawarich/watched:/var/app/tmp/imports/watched:rw
41 + - /volume1/docker/dawarich/storage:/var/app/storage:rw
42 + ports:
43 + - 3639:3000
44 + stdin_open: true
45 + tty: true
46 + entrypoint: web-entrypoint.sh
47 + command: ['bin/rails', 'server', '-p', '3000', '-b', '::']
48 + environment:
49 + RAILS_ENV: development
50 + REDIS_URL: redis://dawarich_redis:6379
51 + DATABASE_HOST: dawarich_db
52 + DATABASE_USERNAME: postgres
53 + DATABASE_PASSWORD: password
54 + DATABASE_NAME: dawarich_development
55 + SELF_HOSTED: true
56 + STORE_GEODATA: true
57 + SECRET_KEY_BASE: dOxZYTTZgXKMHkqLBIQVImayQXAVWdzGBPuFJKggzcgvgPJPXpWzqzKaUOIOGGIr
58 + APPLICATION_HOSTS: dawarich.yourname.synology.me
59 + MIN_MINUTES_SPENT_IN_CITY: 60
60 + TIME_ZONE: Europe/Bucharest
61 + APPLICATION_PROTOCOL: http
62 + DISTANCE_UNIT: km
63 + PROMETHEUS_EXPORTER_ENABLED: false
64 + PROMETHEUS_EXPORTER_HOST: 0.0.0.0
65 + PROMETHEUS_EXPORTER_PORT: 9394
66 + ENABLE_TELEMETRY: false # More on telemetry: https://dawarich.app/docs/tutorials/telemetry
67 + logging:
68 + driver: "json-file"
69 + options:
70 + max-size: "100m"
71 + max-file: "5"
72 + healthcheck:
73 + test: ["CMD-SHELL", "wget -qO - http://127.0.0.1:3000/api/v1/health | grep -q '\"status\"\\s*:\\s*\"ok\"'"]
74 + interval: 10s
75 + retries: 30
76 + start_period: 30s
77 + timeout: 10s
78 + depends_on:
79 + dawarich_db:
80 + condition: service_healthy
81 + dawarich_redis:
82 + condition: service_healthy
83 + restart: on-failure:5
84 +
85 + dawarich_sidekiq:
86 + image: freikin/dawarich:latest
87 + container_name: Dawarich-SIDEKIQ
88 + healthcheck:
89 + test: ["CMD-SHELL", "pgrep -f sidekiq"]
90 + interval: 10s
91 + retries: 30
92 + start_period: 30s
93 + timeout: 10s
94 + volumes:
95 + - /volume1/docker/dawarich/public:/var/app/public:rw
96 + - /volume1/docker/dawarich/watched:/var/app/tmp/imports/watched:rw
97 + - /volume1/docker/dawarich/storage:/var/app/storage:rw
98 + stdin_open: true
99 + tty: true
100 + entrypoint: sidekiq-entrypoint.sh
101 + command: ['sidekiq']
102 + environment:
103 + RAILS_ENV: development
104 + REDIS_URL: redis://dawarich_redis:6379
105 + DATABASE_HOST: dawarich_db
106 + DATABASE_USERNAME: postgres
107 + DATABASE_PASSWORD: password
108 + DATABASE_NAME: dawarich_development
109 + SECRET_KEY_BASE: dOxZYTTZgXKMHkqLBIQVImayQXAVWdzGBPuFJKggzcgvgPJPXpWzqzKaUOIOGGIr
110 + APPLICATION_HOSTS: dawarich.yourname.synology.me
111 + BACKGROUND_PROCESSING_CONCURRENCY: 10
112 + APPLICATION_PROTOCOL: http
113 + PROMETHEUS_EXPORTER_ENABLED: false
114 + PROMETHEUS_EXPORTER_HOST: dawarich_app
115 + PROMETHEUS_EXPORTER_PORT: 9394
116 + SELF_HOSTED: true
117 + STORE_GEODATA: true
118 + logging:
119 + driver: "json-file"
120 + options:
121 + max-size: "100m"
122 + max-file: "5"
123 + depends_on:
124 + dawarich_db:
125 + condition: service_healthy
126 + dawarich_redis:
127 + condition: service_healthy
128 + dawarich_app:
129 + condition: service_healthy
130 + restart: on-failure:5
Новіше Пізніше