-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1 KB
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
37
38
39
40
41
services:
web:
image: index.docker.io/lvccrespo/cacrespo-website:latest
build:
context: .
target: ${TARGET:-production}
args:
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS}
LOGFIRE_TOKEN: ${LOGFIRE_TOKEN}
ports:
- 8000:8000
env_file:
- ./.env
depends_on:
- db
environment:
HISTFILE: /root/hist/.bash_history
volumes:
- shell_history:/root/hist
- /usr/src/app/.venv
- ./:/usr/src/app
- ./backups:/usr/src/app/backups
db:
image: pgvector/pgvector:pg15-trixie
environment:
HISTFILE: /root/hist/.bash_history
DATABASE_URL: ${DATABASE_URL}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data/
- shell_history:/root/hist
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 60
profiles: ["production"]
volumes:
postgres_data:
shell_history: