-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·34 lines (34 loc) · 869 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·34 lines (34 loc) · 869 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
# For more information: https://laravel.com/docs/sail
version: '3'
services:
laravel:
image: bitnami/laravel:9
ports:
- '8000:8000'
command:
- ./run.sh
environment:
DB_HOST: mysql
DB_PORT: 3306
DB_USERNAME: 'collective'
DB_DATABASE: 'collective'
DB_PASSWORD: 'test'
volumes:
- '.:/app'
depends_on:
- mysql
extra_hosts:
- 'host.docker.internal:host-gateway'
mysql:
image: 'mysql/mysql-server:8.0'
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: 'collective'
MYSQL_USER: 'collective'
MYSQL_PASSWORD: 'test'
volumes:
- 'mysql-data:/var/lib/mysql'
volumes:
mysql-data:
driver: local