-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (62 loc) · 1.33 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3'
volumes:
database:
external: false
services:
database:
image: postgres:15.6
environment:
- POSTGRES_PASSWORD=password
volumes:
- database:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7.0-alpine
ports:
- "6379:6379"
web:
build:
context: .
dockerfile: Dockerfile
command: dev_web_start
entrypoint: /src/docker-entrypoint.sh
env_file:
- .env
environment:
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
- DJANGO_SETTINGS_MODULE=config.settings.local
restart: on-failure
volumes:
- .:/src
ports:
- 8000:8000
links:
- database:database
- redis:redis
worker:
build:
context: .
dockerfile: Dockerfile
command: dev_worker_start
entrypoint: /src/docker-entrypoint.sh
env_file:
- .env
environment:
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
- DJANGO_SETTINGS_MODULE=config.settings.local
volumes:
- .:/src
links:
- database:database
- redis:redis
tailwind:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/src
command: dev_tailwind_start
entrypoint: /src/docker-entrypoint.sh
restart: unless-stopped
tty: true