forked from cheshire-cat-ai/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
28 lines (26 loc) · 1.04 KB
/
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
26
27
28
services:
cheshire-cat-core:
build:
context: ./core
container_name: cheshire_cat_core_180
# 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
- ./static:/app/cat/static
- ./plugins:/app/cat/plugins
- ./data:/app/cat/data
command:
- python
- "-m"
- "cat.main"
restart: always