-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 1.01 KB
/
docker-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
29
30
31
32
33
34
35
36
37
38
39
version: '3'
services:
app:
container_name: tabular-notes-app
build: .
image: phpusr/tabular-notes
restart: unless-stopped
environment:
- DJANGO_DEBUG=${DJANGO_DEBUG:-FALSE}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- DJANGO_ALLOWED_HOSTS=${DJANGO_ALLOWED_HOSTS}
- DJANGO_CSRF_TRUSTED_ORIGINS=${DJANGO_CSRF_TRUSTED_ORIGINS}
- DATABASE_URL=postgres://${DB_USER}:${DB_PASSWORD}@db:5432/app
- CELERY_BROKER_URL=redis://redis
ports:
- ${APP_PORT:-8002}:8000
volumes:
- ./data/celerybeat-schedule:/app/data/celerybeat-schedule
depends_on:
- db
db:
container_name: tabular-notes-db
image: postgres:14-alpine
restart: unless-stopped
environment:
- POSTGRES_DB=app
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
ports:
- "5433:5432"
volumes:
- ./data/pgdata:/var/lib/postgresql/data
redis:
container_name: tabular-notes-redis
image: redis:6.2
restart: unless-stopped