2018-10-09 15:09:50 +09:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2022-11-07 12:04:57 +09:00
|
|
|
image: docker.io/thatonecalculator/calckey
|
2022-12-17 09:31:39 +09:00
|
|
|
container_name: calckey_web
|
2022-12-13 13:32:12 +09:00
|
|
|
restart: unless-stopped
|
2022-11-07 12:04:57 +09:00
|
|
|
depends_on:
|
2019-04-07 21:50:36 +09:00
|
|
|
- db
|
2019-04-14 12:05:12 +09:00
|
|
|
- redis
|
2018-10-09 15:09:50 +09:00
|
|
|
# - es
|
|
|
|
ports:
|
2022-05-15 16:39:23 +09:00
|
|
|
- "3000:3000"
|
2018-10-09 15:09:50 +09:00
|
|
|
networks:
|
2022-12-13 13:32:12 +09:00
|
|
|
- calcnet
|
|
|
|
# - web
|
|
|
|
environment:
|
|
|
|
NODE_ENV: production
|
2020-07-30 21:13:38 +09:00
|
|
|
volumes:
|
2022-09-14 15:37:01 +09:00
|
|
|
- ./files:/calckey/files
|
2022-12-17 09:31:39 +09:00
|
|
|
- ./.config:/calckey/.config:ro
|
2018-10-09 15:09:50 +09:00
|
|
|
|
2019-04-14 12:05:12 +09:00
|
|
|
redis:
|
2022-12-13 13:32:12 +09:00
|
|
|
restart: unless-stopped
|
2022-12-08 23:17:00 +09:00
|
|
|
image: docker.io/redis:7.0-alpine
|
2022-12-17 09:31:39 +09:00
|
|
|
container_name: calckey_redis
|
2019-04-14 12:05:12 +09:00
|
|
|
networks:
|
2022-12-13 13:32:12 +09:00
|
|
|
- calcnet
|
2019-04-14 12:05:12 +09:00
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
2018-10-09 15:09:50 +09:00
|
|
|
|
2019-04-07 21:50:36 +09:00
|
|
|
db:
|
2022-12-13 13:32:12 +09:00
|
|
|
restart: unless-stopped
|
2022-12-18 02:22:25 +09:00
|
|
|
image: docker.io/postgres:13.9-alpine
|
2022-12-17 09:31:39 +09:00
|
|
|
container_name: calckey_db
|
2018-10-09 15:09:50 +09:00
|
|
|
networks:
|
2022-12-13 13:32:12 +09:00
|
|
|
- calcnet
|
2019-04-07 21:50:36 +09:00
|
|
|
env_file:
|
2022-12-17 06:59:10 +09:00
|
|
|
- .config/docker.env
|
2018-10-09 15:09:50 +09:00
|
|
|
volumes:
|
2019-04-07 21:50:36 +09:00
|
|
|
- ./db:/var/lib/postgresql/data
|
2018-10-09 15:09:50 +09:00
|
|
|
|
|
|
|
# es:
|
2022-12-13 13:32:12 +09:00
|
|
|
# restart: unless-stopped
|
|
|
|
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
|
|
|
|
# environment:
|
2018-10-09 15:09:50 +09:00
|
|
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
2022-01-25 23:16:09 +09:00
|
|
|
# - "TAKE_FILE_OWNERSHIP=111"
|
2018-10-09 15:09:50 +09:00
|
|
|
# networks:
|
2022-12-13 13:32:12 +09:00
|
|
|
# - calcnet
|
2019-04-07 21:50:36 +09:00
|
|
|
# volumes:
|
|
|
|
# - ./elasticsearch:/usr/share/elasticsearch/data
|
2018-10-09 15:09:50 +09:00
|
|
|
|
|
|
|
networks:
|
2022-12-13 13:32:12 +09:00
|
|
|
calcnet:
|
|
|
|
# web:
|
|
|
|
# external:
|
|
|
|
# name: web
|