2018-10-09 08:09:50 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2024-01-01 00:51:23 +01:00
|
|
|
# image: git.joinsharkey.org/sharkey/sharkey:latest
|
2018-10-09 08:09:50 +02:00
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
links:
|
2019-04-07 14:50:36 +02:00
|
|
|
- db
|
2019-04-14 05:05:12 +02:00
|
|
|
- redis
|
2023-05-05 01:52:14 +02:00
|
|
|
# - meilisearch
|
2023-01-14 22:24:56 +01:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2018-10-09 08:09:50 +02:00
|
|
|
ports:
|
2022-05-15 09:39:23 +02:00
|
|
|
- "3000:3000"
|
2018-10-09 08:09:50 +02:00
|
|
|
networks:
|
2023-09-23 07:20:25 +02:00
|
|
|
- shonk
|
2020-07-30 14:13:38 +02:00
|
|
|
volumes:
|
2023-09-23 06:54:52 +02:00
|
|
|
- ./files:/sharkey/files
|
|
|
|
- ./.config:/sharkey/.config:ro
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2019-04-14 05:05:12 +02:00
|
|
|
redis:
|
|
|
|
restart: always
|
2023-11-09 18:58:51 +01:00
|
|
|
image: redis:7-alpine
|
2019-04-14 05:05:12 +02:00
|
|
|
networks:
|
2023-09-23 07:20:25 +02:00
|
|
|
- shonk
|
2019-04-14 05:05:12 +02:00
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
2023-01-14 22:24:56 +01:00
|
|
|
healthcheck:
|
2023-11-09 18:58:51 +01:00
|
|
|
test: "redis-cli ping"
|
2023-01-14 22:24:56 +01:00
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
db:
|
2018-10-09 08:09:50 +02:00
|
|
|
restart: always
|
2023-01-17 22:13:44 +01:00
|
|
|
image: postgres:15-alpine
|
2018-10-09 08:09:50 +02:00
|
|
|
networks:
|
2023-09-23 07:20:25 +02:00
|
|
|
- shonk
|
2019-04-07 14:50:36 +02:00
|
|
|
env_file:
|
|
|
|
- .config/docker.env
|
2018-10-09 08:09:50 +02:00
|
|
|
volumes:
|
2019-04-07 14:50:36 +02:00
|
|
|
- ./db:/var/lib/postgresql/data
|
2023-01-14 22:24:56 +01:00
|
|
|
healthcheck:
|
2023-01-15 12:54:20 +01:00
|
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
2023-01-14 22:24:56 +01:00
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2023-05-05 01:52:14 +02:00
|
|
|
# meilisearch:
|
2018-10-09 08:09:50 +02:00
|
|
|
# restart: always
|
2023-09-15 07:28:29 +02:00
|
|
|
# image: getmeili/meilisearch:v1.3.4
|
2018-10-09 08:09:50 +02:00
|
|
|
# environment:
|
2023-05-05 01:52:14 +02:00
|
|
|
# - MEILI_NO_ANALYTICS=true
|
|
|
|
# - MEILI_ENV=production
|
2018-10-09 08:09:50 +02:00
|
|
|
# networks:
|
2023-09-23 07:20:25 +02:00
|
|
|
# - shonk
|
2019-04-07 14:50:36 +02:00
|
|
|
# volumes:
|
2023-05-05 01:52:14 +02:00
|
|
|
# - ./meili_data:/meili_data
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2023-10-07 01:33:17 +02:00
|
|
|
|
2018-10-09 08:09:50 +02:00
|
|
|
networks:
|
2023-09-23 07:20:25 +02:00
|
|
|
shonk:
|