This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
73 lines (65 loc) · 1.62 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.8'
services:
main:
container_name: Serve
build:
context: .
dockerfile: Dockerfile
command: 'php artisan serve --host=0.0.0.0'
# command: >
# sh -c "php artisan migrate && php artisan db:seed && php artisan key:generate && php artisan serve --host=0.0.0.0"
volumes:
- .:/app
ports:
- 8000:8000
depends_on:
- db
# - queue
queue:
container_name: Queue
build:
context: .
dockerfile: Dockerfile
command: 'php artisan queue:listen'
depends_on:
- db
db:
platform: linux/x86_64
image: mysql:8.0
container_name: Database
environment:
MYSQL_DATABASE: "${DB_DATABASE}"
# MYSQL_USER: "${DB_USERNAME}"
MYSQL_ROOT: "root"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
volumes:
- db:/var/lib/mysql
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: PhpMyAdmin
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80
mailpit:
image: axllent/mailpit
container_name: MailPit
ports:
- "1025:1025"
- "8025:8025"
networks:
- laravel-exa
networks:
laravel-exa:
driver: bridge
volumes:
db:
driver: local