-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.22 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
version: '3.8'
services:
web:
build:
context: .
dockerfile: docker/web.Dockerfile
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/job_search
- REDIS_URL=redis://redis:6379/0
depends_on:
- db
- redis
volumes:
- ./data:/app/data
- ./email_templates:/app/email_templates
networks:
- job_search_network
worker:
build:
context: .
dockerfile: docker/worker.Dockerfile
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/job_search
- REDIS_URL=redis://redis:6379/0
depends_on:
- db
- redis
volumes:
- ./data:/app/data
- ./email_templates:/app/email_templates
networks:
- job_search_network
db:
image: postgres:13
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=job_search
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- job_search_network
redis:
image: redis:6
volumes:
- redis_data:/data
networks:
- job_search_network
volumes:
postgres_data:
redis_data:
networks:
job_search_network:
driver: bridge