-
Notifications
You must be signed in to change notification settings - Fork 0
/
_docker-compose.yml
46 lines (41 loc) · 979 Bytes
/
_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
# Docker not yet implemented
version: '3.8'
services:
flask-app:
build: .
container_name: flask-app
ports:
- "5000:5000"
environment:
- FLASK_ENV=development
- DATABASE_HOST=mysql
- DATABASE_PORT=3306
- DATABASE_USER=your_username
- DATABASE_PASSWORD=your_password
- DATABASE_NAME=stixd_corpus
depends_on:
- mysql
volumes:
- .:/app
mem_limit: 512m # Set a memory limit for Flask app
mysql:
image: mysql:8.0
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: your_password
MYSQL_DATABASE: stixd_corpus
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
mem_limit: 1g # Set a memory limit for MySQL
selenium:
image: selenium/standalone-chrome:latest
container_name: selenium
ports:
- "4444:4444"
depends_on:
- flask-app
mem_limit: 512m # Set a memory limit for Selenium
volumes:
mysql_data: