File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,10 @@ class TaskiqAdminMiddleware(TaskiqMiddleware):
81
81
``` bash
82
82
docker run -d --rm \
83
83
-p " 3000:3000" \
84
- -v ./taskiq-admin-data/:/usr/database/ \
85
- -e TASKIQ_ADMIN_API_TOKEN=supersecret \
86
- --name taskiq-admin \
87
- ghcr.io/taskiq-python/taskiq-admin:latest
84
+ -v " ./taskiq-admin-data/:/usr/database/" \
85
+ -e " TASKIQ_ADMIN_API_TOKEN=supersecret" \
86
+ --name " taskiq-admin" \
87
+ " ghcr.io/taskiq-python/taskiq-admin:latest"
88
88
```
89
89
90
90
4 ) Go to ` http://localhost:3000/tasks `
@@ -93,15 +93,13 @@ docker run -d --rm \
93
93
94
94
.env file example:
95
95
``` bash
96
- ...
97
- TASKIQ_ADMIN_URL=http://taskiq_admin:3000
98
- TASKIQ_ADMIN_API_TOKEN=supersecret
99
- ...
96
+ TASKIQ_ADMIN_URL=" http://taskiq_admin:3000"
97
+ TASKIQ_ADMIN_API_TOKEN=" supersecret"
100
98
```
101
99
102
100
compose.yml file example
103
- ``` shell
104
- ...
101
+ ``` yaml
102
+ services :
105
103
queue :
106
104
build :
107
105
context : .
@@ -122,8 +120,10 @@ compose.yml file example
122
120
env_file :
123
121
- .env
124
122
volumes :
125
- - ./any/suitable/path:/usr/database/
126
- ...
123
+ - admin_data:/usr/database/
124
+
125
+ volumes :
126
+ admin_data :
127
127
` ` `
128
128
129
129
### Development
You can’t perform that action at this time.
0 commit comments