2018-10-09 06:09:50 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2024-02-06 06:38:03 +00:00
|
|
|
image: registry.firefish.dev/firefish/firefish:latest
|
2023-07-02 22:18:30 +00:00
|
|
|
container_name: firefish_web
|
2022-12-13 04:32:12 +00:00
|
|
|
restart: unless-stopped
|
2022-11-07 03:04:57 +00:00
|
|
|
depends_on:
|
2024-03-16 17:24:40 +00:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
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
|
2024-04-17 10:49:02 +00:00
|
|
|
NODE_OPTIONS: --max-old-space-size=3072
|
2020-07-30 12:13:38 +00:00
|
|
|
volumes:
|
2024-02-22 18:18:32 +00:00
|
|
|
- ./custom:/firefish/custom:ro
|
2023-07-02 22:18:30 +00:00
|
|
|
- ./files:/firefish/files
|
|
|
|
- ./.config:/firefish/.config:ro
|
2024-03-16 17:24:40 +00:00
|
|
|
healthcheck:
|
|
|
|
test: curl -f http://localhost:3000 || exit 1
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2024-03-16 17:29:41 +00:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 4096M
|
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
|
2023-07-02 22:18:30 +00:00
|
|
|
container_name: firefish_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
|
2024-03-16 17:24:40 +00:00
|
|
|
healthcheck:
|
|
|
|
test: redis-cli ping
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2024-03-16 17:29:41 +00:00
|
|
|
# deploy:
|
|
|
|
# resources:
|
|
|
|
# limits:
|
|
|
|
# memory: 200M
|
|
|
|
|
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
|
2024-03-18 16:21:01 +00:00
|
|
|
image: docker.io/groonga/pgroonga:3.1.8-alpine-16-slim
|
2023-07-02 22:18:30 +00:00
|
|
|
container_name: firefish_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
|
2024-03-16 17:24:40 +00:00
|
|
|
healthcheck:
|
|
|
|
test: pg_isready --user="$${POSTGRES_USER}" --dbname="$${POSTGRES_DB}"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2024-03-16 17:29:41 +00:00
|
|
|
# deploy:
|
|
|
|
# resources:
|
|
|
|
# limits:
|
|
|
|
# memory: 200M
|
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
|