-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (112 loc) · 2.59 KB
/
docker-compose.yml
File metadata and controls
118 lines (112 loc) · 2.59 KB
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:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: anote-frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: "true"
REACT_APP_BACK_END_HOST: "http://localhost:5000"
depends_on:
backend:
condition: service_healthy
networks:
- anote-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: anote-backend
restart: unless-stopped
ports:
- "5000:5000"
- "6379:6379"
- "9998:9998"
volumes:
- ./backend:/app
- ./backend/database/schema.sql:/docker-entrypoint-initdb.d/init.sql
env_file:
- ./backend/.env.example
environment:
FLASK_APP: app.py
FLASK_ENV: development
FLASK_DEBUG: "1"
PYTHONUNBUFFERED: "1"
PYTHONDONTWRITEBYTECODE: "1"
TIKA_SERVER_ENDPOINT: http://tika:9998
REDIS_HOST: redis
REDIS_PORT: "6379"
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
tika:
condition: service_started
networks:
- anote-network
shm_size: "2.44gb"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
db:
image: mysql:8.0
container_name: anote-db
restart: unless-stopped
ports:
- "3307:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_DATABASE: agents
MYSQL_ROOT_PASSWORD: ""
volumes:
- mysql-data:/var/lib/mysql
- ./backend/database/schema.sql:/docker-entrypoint-initdb.d/init.sql
command: --default-authentication-plugin=mysql_native_password
networks:
- anote-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "db", "-u", "root"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
tika:
image: apache/tika:latest
container_name: anote-tika
restart: unless-stopped
ports:
- "9999:9998"
networks:
- anote-network
redis:
image: redis:7-alpine
container_name: anote-redis
restart: unless-stopped
ports:
- "6380:6379"
volumes:
- redis-data:/data
networks:
- anote-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
anote-network:
driver: bridge
volumes:
mysql-data:
redis-data: