2022-12-13 03:34:18 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
image: docker.io/thatonecalculator/calckey
|
2022-12-13 04:32:12 +00:00
|
|
|
build: .
|
|
|
|
restart: always
|
2022-12-13 03:34:18 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
# - es
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
- network
|
2022-12-13 03:34:18 +00:00
|
|
|
volumes:
|
|
|
|
- ./files:/calckey/files
|
2022-12-13 04:32:12 +00:00
|
|
|
- ./.config:/calckey/.config:ro
|
2022-12-13 03:34:18 +00:00
|
|
|
|
|
|
|
redis:
|
2022-12-13 04:32:12 +00:00
|
|
|
restart: always
|
2022-12-13 03:34:18 +00:00
|
|
|
image: docker.io/redis:7.0-alpine
|
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
- network
|
2022-12-13 03:34:18 +00:00
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
|
|
|
|
|
|
|
db:
|
2022-12-13 04:32:12 +00:00
|
|
|
restart: always
|
2022-12-13 03:34:18 +00:00
|
|
|
image: docker.io/postgres:12.2-alpine
|
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
- network
|
2022-12-13 03:34:18 +00:00
|
|
|
env_file:
|
2022-12-13 04:32:12 +00:00
|
|
|
- .config/docker.env
|
2022-12-13 03:34:18 +00:00
|
|
|
volumes:
|
|
|
|
- ./db:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
# es:
|
2022-12-13 04:32:12 +00:00
|
|
|
# restart: always
|
|
|
|
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
|
|
|
|
# environment:
|
2022-12-13 03:34:18 +00:00
|
|
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
|
# - "TAKE_FILE_OWNERSHIP=111"
|
|
|
|
# networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
# - network
|
2022-12-13 03:34:18 +00:00
|
|
|
# volumes:
|
|
|
|
# - ./elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
|
|
|
|
networks:
|
2022-12-13 04:32:12 +00:00
|
|
|
network:
|