-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
36 lines (33 loc) · 983 Bytes
/
docker-compose.yaml
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
29
30
31
32
33
34
35
36
services:
app:
restart: unless-stopped
container_name: lattebot
build:
context: .
platform: linux/amd64 # Patch for M1 Mac
volumes:
- ./logs:/app/logs:rw
env_file:
- .env
environment:
- PROJECT_NAME=${PROJECT_NAME}
- APPLICATION_ID=${APPLICATION_ID}
- SUPPORT_GUILD_ID=${SUPPORT_GUILD_ID}
- DISCORD_TOKEN=${DISCORD_TOKEN}
- GUILD_WEBHOOK_ID=${GUILD_WEBHOOK_ID}
- GUILD_WEBHOOK_TOKEN=${GUILD_WEBHOOK_TOKEN}
tty: true
develop:
watch:
# Sync the working directory with the `/app` directory in the container
- action: sync
path: .
target: /app
# Exclude the project virtual environment — it could be for a
# different platform in the container
ignore:
- .venv/
# Rebuild the image on changes to the `pyproject.toml`
- action: rebuild
path: ./pyproject.toml
# TODO: public image