forked from cheshire-cat-ai/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
25 lines (23 loc) · 974 Bytes
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
services:
cheshire-cat-core:
build:
context: ./core
container_name: cheshire_cat_core
# Uncomment the two lines below to use your .env (see .env.example)
#env_file:
# - .env
ports:
- ${CCAT_CORE_PORT:-1865}:80
- 5678:5678 # only for development purposes (take away in production)
extra_hosts:
- "host.docker.internal:host-gateway" # This add an entry to /etc/hosts file in the container mapping host.docker.internal to the host machine IP addr, allowing the container to access services running on the host, not only on Win and Mac but also Linux. See https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host and https://docs.docker.com/reference/cli/docker/container/run/#add-host
environment:
# Timezone
- TZ=${CCAT_TIMEZONE:-UTC}
volumes:
- ./core:/app
command:
- python
- "-m"
- "cat.main"
restart: unless-stopped