-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
135 lines (122 loc) · 2.78 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
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
version: "3.8"
services:
app:
container_name: app
build: .
command: bash -c "uvicorn main:app --host 0.0.0.0 --port 8000 --reload"
volumes:
- .:/app
ports:
- 8888:8000
restart: always
api:
container_name: api
image: pjabadesco/php74-apache-mssql-mysql:1.1
volumes:
- ./src/api:/var/www/html/
ports:
- 80:80
ws:
container_name: ws
image: node:lts-alpine
working_dir: /home/node/app
environment:
- NODE_ENV=production
volumes:
- ./src/ws:/home/node/app/
ports:
- 3000:3000
command: "npm start"
privileged: true
redis:
container_name: redis
image: redis:6.2-alpine
restart: unless-stopped
volumes:
- redis:/data
ports:
- 6379:6379
privileged: true
celery_worker_01:
container_name: celery_worker_01
build: .
command: celery -A celery_worker.celery worker --loglevel=info
volumes:
- .:/app
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
depends_on:
- app
- redis
celery_worker_02:
container_name: celery_worker_02
build: .
command: celery -A celery_worker.celery worker --loglevel=info
volumes:
- .:/app
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
depends_on:
- app
- redis
celery_worker_03:
container_name: celery_worker_03
build: .
command: celery -A celery_worker.celery worker --loglevel=info
volumes:
- .:/app
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
depends_on:
- app
- redis
flower:
container_name: flower
build: .
command: celery -A celery_worker.celery flower --port=5555
ports:
- 5556:5555
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
depends_on:
- app
- redis
- celery_worker_01
- celery_worker_02
- celery_worker_03
redisinsight:
container_name: redisinsight
image: redislabs/redisinsight:latest
ports:
- 8001:8001
volumes:
- redisinsight:/db
mysql:
container_name: mysql
image: mariadb:10.3
restart: always
environment:
MYSQL_ROOT_PASSWORD: notSecureChangeMe
MYSQL_DATABASE: test
ports:
- "3306:3306"
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin
restart: always
ports:
- 8082:80
environment:
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=notSecureChangeMe
- PMA_DATABASE=test
depends_on:
- mysql
volumes:
redis: null
redisinsight: null