-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.docker-compose.yml-ci
47 lines (44 loc) · 1.14 KB
/
.docker-compose.yml-ci
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
version: '3.4'
services:
laravel:
container_name: laravel
image: localbuild/laravel-docker:php80
environment:
- MYSQL_USER=${LARAVEL_DB_USER:-app}
- MYSQL_PASSWORD=${LARAVEL_DB_PASSWORD:-password}
- MYSQL_DATABASE=${LARAVEL_DB_NAME:-laravel}
- LARAVEL_DB_HOST=${LARAVEL_DB_HOST:-mysql}
- FORCE_MIGRATE=force
command: [ "php", "artisan", "serve", "--host=0.0.0.0", "--port=3000" ]
ports:
- 3000:3000
depends_on:
- mysql
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "5"
restart: always
mysql:
image: mariadb:${MARIADB_VERSION:-latest}
container_name: mysql
volumes:
- type: volume
source: mysql
target: /var/lib/mysql
volume:
nocopy: true
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-password}
- MYSQL_USER=${MYSQL_USER:-root}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-password}
- MYSQL_DATABASE=${MYSQL_DATABASE:-laravel}
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "5"
restart: always
volumes:
mysql: