-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 929 Bytes
/
docker-compose.yml
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.8'
services:
main:
container_name: Serve
build:
context: .
dockerfile: Dockerfile
command: 'php artisan serve --host=0.0.0.0'
volumes:
- .:/app
ports:
- 8000:8000
depends_on:
- db
db:
platform: linux/x86_64
image: mysql:8.0
container_name: Database
environment:
MYSQL_DATABASE: "invoices"
MYSQL_USER: "rubens"
MYSQL_ROOT: "root"
MYSQL_PASSWORD: "123456"
MYSQL_ROOT_PASSWORD: "123456"
volumes:
- db:/var/lib/mysql
- ./database/dump:/docker-entrypoint-initdb.d
ports:
- 33062:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: PhpMyAdmin
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8080:80
networks:
laravel-exa:
driver: bridge
volumes:
db:
driver: local