-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (46 loc) · 988 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
web:
container_name: data410-web
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
command: /start
volumes:
- .:/app
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- redis
- db
tailwind:
container_name: data410-tailwind
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
volumes:
- .:/app
env_file:
- .env
command: "python manage.py tailwind start"
# Without tty, no stdin, and tailwind watcher aborts
# https://github.com/tailwindlabs/tailwindcss/issues/5324
tty: true
restart: always
db:
container_name: data410-db
image: postgres:17
ports:
- "5432:5432"
environment:
- POSTGRES_USER=data410
- POSTGRES_PASSWORD=data410
- POSTGRES_DB=data410
redis:
container_name: data410-redis
image: redis:latest
ports:
- "6379:6379"
volumes:
postgres_data: