forked from adiralashiva8/robotframework-historic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (50 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
51 lines (50 loc) · 1.08 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
version: '3'
services:
# Database
db:
image: mysql:5.7
command: --sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
volumes:
- db_data:/var/lib/mysql
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: robothistoric
MYSQL_USER: username
MYSQL_PASSWORD: password
networks:
- rf
# phpmyadmin
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '8081:80'
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: password
networks:
- rf
# rfhistoric - build locally with: docker compose build rfhistoric
rfhistoric:
depends_on:
- db
build: .
restart: always
ports:
- '5001:5000'
environment:
SQLHOST: db
PORT: 3306
USERNAME: root
PASSWORD: password
FLASKHOST: 0.0.0.0
networks:
- rf
networks:
rf:
volumes:
db_data: