2018-10-09 06:09:50 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2022-11-07 03:04:57 +00:00
|
|
|
image: docker.io/thatonecalculator/calckey
|
2022-12-17 00:31:39 +00:00
|
|
|
container_name: calckey_web
|
2022-12-13 04:32:12 +00:00
|
|
|
restart: unless-stopped
|
2022-11-07 03:04:57 +00:00
|
|
|
depends_on:
|
2019-04-07 12:50:36 +00:00
|
|
|
- db
|
2019-04-14 03:05:12 +00:00
|
|
|
- redis
|
2023-05-26 00:51:17 +00:00
|
|
|
- meilisearch
|
2018-10-09 06:09:50 +00:00
|
|
|
ports:
|
2022-05-15 07:39:23 +00:00
|
|
|
- "3000:3000"
|
2018-10-09 06:09:50 +00:00
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
- calcnet
|
|
|
|
# - web
|
|
|
|
environment:
|
|
|
|
NODE_ENV: production
|
2020-07-30 12:13:38 +00:00
|
|
|
volumes:
|
2022-09-14 06:37:01 +00:00
|
|
|
- ./files:/calckey/files
|
2022-12-17 00:31:39 +00:00
|
|
|
- ./.config:/calckey/.config:ro
|
2018-10-09 06:09:50 +00:00
|
|
|
|
2019-04-14 03:05:12 +00:00
|
|
|
redis:
|
2022-12-13 04:32:12 +00:00
|
|
|
restart: unless-stopped
|
2022-12-08 14:17:00 +00:00
|
|
|
image: docker.io/redis:7.0-alpine
|
2022-12-17 00:31:39 +00:00
|
|
|
container_name: calckey_redis
|
2019-04-14 03:05:12 +00:00
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
- calcnet
|
2019-04-14 03:05:12 +00:00
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
2018-10-09 06:09:50 +00:00
|
|
|
|
2019-04-07 12:50:36 +00:00
|
|
|
db:
|
2022-12-13 04:32:12 +00:00
|
|
|
restart: unless-stopped
|
2022-12-19 00:57:51 +00:00
|
|
|
image: docker.io/postgres:12.2-alpine
|
2022-12-17 00:31:39 +00:00
|
|
|
container_name: calckey_db
|
2018-10-09 06:09:50 +00:00
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
- calcnet
|
2019-04-07 12:50:36 +00:00
|
|
|
env_file:
|
2022-12-16 21:59:10 +00:00
|
|
|
- .config/docker.env
|
2018-10-09 06:09:50 +00:00
|
|
|
volumes:
|
2019-04-07 12:50:36 +00:00
|
|
|
- ./db:/var/lib/postgresql/data
|
2018-10-09 06:09:50 +00:00
|
|
|
|
2023-05-26 08:05:46 +00:00
|
|
|
### Only one of the below should be used.
|
|
|
|
### Meilisearch is better overall, but resource-intensive. Sonic is a very light full text search engine.
|
|
|
|
|
|
|
|
# meilisearch:
|
|
|
|
# container_name: meilisearch
|
|
|
|
# image: getmeili/meilisearch:v1.1.1
|
|
|
|
# environment:
|
|
|
|
# - MEILI_ENV=${MEILI_ENV:-development}
|
|
|
|
# ports:
|
|
|
|
# - "7700:7700"
|
|
|
|
# networks:
|
|
|
|
# - calcnet
|
|
|
|
# volumes:
|
|
|
|
# - ./meili_data:/meili_data
|
|
|
|
# restart: unless-stopped
|
|
|
|
|
|
|
|
# sonic:
|
|
|
|
# restart: unless-stopped
|
|
|
|
# image: docker.io/valeriansaliou/sonic:v1.4.0
|
|
|
|
# networks:
|
|
|
|
# - calcnet
|
|
|
|
# volumes:
|
|
|
|
# - ./sonic:/var/lib/sonic/store
|
|
|
|
# - ./sonic/config.cfg:/etc/sonic.cfg
|
2018-10-09 06:09:50 +00:00
|
|
|
|
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
calcnet:
|
2023-05-26 08:05:46 +00:00
|
|
|
# web:
|
|
|
|
# external:
|
|
|
|
# name: web
|