forked from jrballot/simplePythonFlask
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
45 lines (41 loc) · 947 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
version: '2'
services:
web:
container_name: simplePythonFlask
image: simple-python-flask
build:
context: .
dockerfile: Dockerfile
ports:
- 5000:5000
depends_on:
- 'mariadb'
web_initiate_db:
container_name: simple-python-flask_init_db
image: simple-python-flask
entrypoint: ["python3","create_db.py"]
depends_on:
- 'mariadb'
mariadb:
container_name: mariadb
image: mariadb:latest
ports:
- 3306:3306
restart: always
environment:
MYSQL_ROOT_PASSWORD: "qwe123qwe"
volumes:
- ./mariadb_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot", "-ppass"]
interval: 30s
timeout: 20s
retries: 10
selenium:
container_name: selenium
image: selenium/standalone-firefox
ports:
- 4444:4444
- 7900:7900
restart: always
shm_size: '2gb'