2018-10-09 08:09:50 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2024-02-06 07:38:03 +01:00
|
|
|
image: registry.firefish.dev/firefish/firefish:latest
|
2023-07-03 00:18:30 +02:00
|
|
|
container_name: firefish_web
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: unless-stopped
|
2022-11-07 04:04:57 +01:00
|
|
|
depends_on:
|
2024-03-16 18:24:40 +01:00
|
|
|
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:
|
2022-12-13 05:32:12 +01:00
|
|
|
- calcnet
|
|
|
|
# - web
|
|
|
|
environment:
|
|
|
|
NODE_ENV: production
|
2020-07-30 14:13:38 +02:00
|
|
|
volumes:
|
2024-02-22 19:18:32 +01:00
|
|
|
- ./custom:/firefish/custom:ro
|
2023-07-03 00:18:30 +02:00
|
|
|
- ./files:/firefish/files
|
|
|
|
- ./.config:/firefish/.config:ro
|
2024-03-16 18:24:40 +01:00
|
|
|
healthcheck:
|
|
|
|
test: curl -f http://localhost:3000 || exit 1
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2019-04-14 05:05:12 +02:00
|
|
|
redis:
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: unless-stopped
|
2022-12-08 15:17:00 +01:00
|
|
|
image: docker.io/redis:7.0-alpine
|
2023-07-03 00:18:30 +02:00
|
|
|
container_name: firefish_redis
|
2019-04-14 05:05:12 +02:00
|
|
|
networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
- calcnet
|
2019-04-14 05:05:12 +02:00
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
2024-03-16 18:24:40 +01:00
|
|
|
healthcheck:
|
|
|
|
test: redis-cli ping
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2018-10-09 08:09:50 +02:00
|
|
|
|
2019-04-07 14:50:36 +02:00
|
|
|
db:
|
2022-12-13 05:32:12 +01:00
|
|
|
restart: unless-stopped
|
2024-03-01 13:39:13 +01:00
|
|
|
image: docker.io/groonga/pgroonga:latest-alpine-16-slim
|
2023-07-03 00:18:30 +02:00
|
|
|
container_name: firefish_db
|
2018-10-09 08:09:50 +02:00
|
|
|
networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
- calcnet
|
2019-04-07 14:50:36 +02:00
|
|
|
env_file:
|
2022-12-16 22:59:10 +01:00
|
|
|
- .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
|
2024-03-16 18:24:40 +01:00
|
|
|
healthcheck:
|
|
|
|
test: pg_isready --user="$${POSTGRES_USER}" --dbname="$${POSTGRES_DB}"
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
2018-10-09 08:09:50 +02:00
|
|
|
|
|
|
|
networks:
|
2022-12-13 05:32:12 +01:00
|
|
|
calcnet:
|
2023-05-26 10:05:46 +02:00
|
|
|
# web:
|
|
|
|
# external:
|
|
|
|
# name: web
|