This repository was archived by the owner on Mar 5, 2024. It is now read-only.
forked from wakeapp/liveprof-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 loc) · 1.38 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
version: "2"
services:
# mysql storage
# db_mysql:
# image: mysql:5.7
# restart: always
# ports:
# - 3306:3306
# volumes:
# - "./db_data/mysql:/var/lib/mysql:rw"
# environment:
# MYSQL_ROOT_PASSWORD: db_password
# MYSQL_DATABASE: Profiler
db_mysql:
image: mysql:8.0
restart: always
command: --default-authentication-plugin=mysql_native_password --innodb-use-native-aio=0 --lower_case_table_names=2 --innodb-buffer-pool-size=10G --sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
ports:
- 3306:3306
volumes:
- "./db_data/mysql:/var/lib/mysql:rw"
environment:
MYSQL_ROOT_PASSWORD: db_password
MYSQL_DATABASE: Profiler
# MYSQL_USER: ${MYSQL_USER}
# MYSQL_PASSWORD: ${MYSQL_PASSWORD}
# # postgresql storage
# db_pgsql:
# image: postgres
# restart: always
# ports:
# - 5432:5432
# volumes:
# - "./db_data/pg:/var/lib/postgresql/data:rw"
# environment:
# POSTGRES_USER: db_user
# POSTGRES_PASSWORD: db_password
# POSTGRES_DB: Profiler
web:
restart: always
build: 'docker/web'
command:
php -S 0.0.0.0:8000 -t src/www/ src/www/router.php
ports:
- "80:8000"
volumes:
- .:/app
- ./db_data:/app/db_data
cli:
build: 'docker/web'
volumes:
- .:/app
- ./db_data:/app/db_data