-
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 840 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 840 Bytes
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
version: '3'
services:
app:
build:
context: ./
ports:
- "80:80"
networks:
- hisabi
depends_on:
- mysql
mysql:
image: 'mysql/mysql-server:8.0'
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: 'hisabi'
MYSQL_USER: 'hisabi'
MYSQL_PASSWORD: 'hisabi'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'hisabimysql:/var/lib/mysql'
networks:
- hisabi
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-proot"]
retries: 3
timeout: 5s
networks:
hisabi:
driver: bridge
volumes:
hisabimysql:
driver: local