-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
118 lines (110 loc) · 2.48 KB
/
docker-compose.dev.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
services:
# nginx:
# image: nginx:stable
# container_name: hanz_dev_nginx_server
# restart: unless-stopped
# ports:
# - "8080:80"
# networks:
# - hanz-nw
# volumes:
# - ./deployment/nginx/nginx.conf:/etc/nginx/nginx.conf
# - ./deployment/nginx/vhost.dev.conf:/etc/nginx/conf.d/default.conf
# - ./media:/app/media
# - ./static:/app/static
web:
build:
context: .
dockerfile: dev.Dockerfile
container_name: hanz_web_dev
command: "python manage.py runserver 0.0.0.0:8000"
restart: unless-stopped
volumes:
- ./:/app/src
ports:
- "8000:8000"
networks:
- hanz-nw
depends_on:
- redis
environment:
- DATABASE_URL=postgres://user:password@db:5432/hanz-db
- REDIS_URL=redis://redis:6379/1
- S3_ADDRESSING_STYLE=auto
- RUN_MIGRATION=true
env_file:
- .env
celery_worker:
container_name: hanz_celery_worker
build:
context: .
dockerfile: dev.Dockerfile
command: celery -A hanz worker -l info
volumes:
- ./:/app/src
environment:
- DEBUG=1
- DATABASE_URL=postgres://user:password@db:5432/hanz-db
env_file:
- .env
networks:
- hanz-nw
depends_on:
- db
- redis
celery_beat:
container_name: hanz_celery_beat
build:
context: .
dockerfile: dev.Dockerfile
command: celery -A hanz beat -l info
volumes:
- ./:/app/src
environment:
- DEBUG=1
- DATABASE_URL=postgres://user:password@db:5432/hanz-db
env_file:
- .env
networks:
- hanz-nw
depends_on:
- db
- redis
minio:
image: quay.io/minio/minio
container_name: hanz_dev_app_minio
restart: unless-stopped
networks:
- hanz-nw
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./dev_data/minio/data:/data
env_file:
- .env
command: server /data --console-address ":9001"
db:
image: postgres:15-alpine
container_name: hanz_dev_postgres_db
restart: unless-stopped
networks:
- hanz-nw
volumes:
- hanz-db-data:/var/lib/postgresql/db
environment:
- POSTGRES_DB=hanz-db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- PGDATA=/var/lib/postgresql/db
redis:
image: redis:7-alpine
container_name: hanz_dev_app_redis
restart: unless-stopped
networks:
- hanz-nw
networks:
hanz-nw:
driver: bridge
volumes:
hanz-db-data: