Skip to content

Commit ca014db

Browse files
committed
development docker compose script
1 parent e3945e9 commit ca014db

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

docker-compose-develop.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
version: '3.8'
2+
3+
services:
4+
flask:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
ports:
9+
- "5001:5000"
10+
environment:
11+
- FLASK_APP=cratey.py
12+
- FLASK_ENV=development
13+
- CELERY_BROKER_URL=redis://redis:6379/0
14+
- CELERY_RESULT_BACKEND=redis://redis:6379/0
15+
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
16+
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
17+
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
18+
depends_on:
19+
- redis
20+
- minio
21+
22+
celery_worker:
23+
build:
24+
context: .
25+
dockerfile: Dockerfile
26+
environment:
27+
- CELERY_BROKER_URL=redis://redis:6379/0
28+
- CELERY_RESULT_BACKEND=redis://redis:6379/0
29+
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
30+
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
31+
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
32+
depends_on:
33+
- redis
34+
- minio
35+
36+
redis:
37+
image: "redis:alpine"
38+
ports:
39+
- "6379:6379"
40+
41+
minio:
42+
image: "minio/minio"
43+
ports:
44+
- "9000:9000"
45+
- "9001:9001"
46+
environment:
47+
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
48+
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
49+
- MINIO_BROWSER_REDIRECT_PORT=9001
50+
command: server --console-address ":9001" /data
51+
volumes:
52+
- minio_data:/data
53+
54+
volumes:
55+
minio_data:

0 commit comments

Comments
 (0)