-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
149 lines (133 loc) · 2.69 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '3.7'
services:
# nginx:
# build: ./compose/local/nginx
# ports:
# - 8090:8090
# - 5555:5555
# - 15672:15672
# depends_on:
# - web
# - flower
## - frontend
#
# frontend:
# image: sit_core_frontend
# build: ./frontend
## volumes:
## - ./frontend/:/user/src/app/
## expose:
## - 3000
## ports:
## - 3000:3000
# depends_on:
# - web
# command: ./start-dev
# env_file:
# - .env/dev.env
web:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: sit_core_web
command: /start
volumes:
- .:/app
ports:
- 8000:8000
env_file:
- .env/dev.env
depends_on:
- redis
- db
db:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=hello_django_dev
- POSTGRES_USER=hello_django
- POSTGRES_PASSWORD=hello_django
# pgadmin:
# container_name: pgadmin4_container
# image: dpage/pgadmin4
# restart: always
# environment:
# PGADMIN_DEFAULT_EMAIL: admin@admin.com
# PGADMIN_DEFAULT_PASSWORD: hello_django
# ports:
# - "5050:80"
redis:
image: redis:5-alpine
# rabbitmq:
# image: rabbitmq:3-management
# env_file:
# - .env/prod.env
celery_worker:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: sit_core_celery_worker
command: /start-celeryworker
volumes:
- .:/app
env_file:
- .env/dev.env
depends_on:
- redis
- db
celery_beat:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: sit_core_celery_beat
command: /start-celerybeat
volumes:
- .:/app
env_file:
- .env/dev.env
depends_on:
- redis
- db
flower:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: sit_core_celey_flower
command: /start-flower
volumes:
- .:/app
env_file:
- .env/dev.env
ports:
- 5555:5555
depends_on:
- redis
- db
# grafana:
# image: grafana/grafana:7.2.0
# env_file:
# - .env/dev.env
# prometheus:
# image: prom/prometheus
# ports:
# - 9090:9090
# command:
# - --config.file=/etc/prometheus/prometheus.yml
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
# depends_on:
# - cadvisor
#
# cadvisor:
# image: google/cadvisor
# container_name: cadvisor
# volumes:
# - /:/rootfs:ro
# - /var/run:/var/run:rw
# - /sys:/sys:ro
# - /var/lib/docker/:/var/lib/docker:ro
volumes:
postgres_data:
# staticfiles:
# mediafiles: