generated from miladimos/package-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·79 lines (77 loc) · 1.59 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
74
75
76
77
78
79
version: "3.8"
networks:
laravel:
driver: bridge
services:
site:
image: nginx:alpine
container_name: webserver
restart: unless-stopped
tty: true
ports:
- "80:80"
- "443:443"
depends_on:
- php-box1
- mysql
volumes:
- .:/var/www/html
- ./nginx/conf.d/:/etc/nginx/conf.d/
networks:
- laravel
php-box1:
build:
context: .
dockerfile: php.dockerfile
container_name: php-box1
working_dir: /var/www/html
volumes:
- .:/var/www/html
ports:
- "9000:9000"
networks:
- laravel
artisan:
build:
context: .
dockerfile: php.dockerfile
container_name: artisan
volumes:
- .:/var/www/html
depends_on:
- mysql
working_dir: /var/www/html
entrypoint: ["php","/var/www/html/artisan"]
networks:
- laravel
mysql:
image: mysql:5.7.31
container_name: mysql
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "laravel-conf"
MYSQL_USER: "laravel-conf"
MYSQL_PASSWORD: "laravel-conf"
MYSQL_DATABASE: "laravel-conf"
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- db_data:/var/lib/mysql
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
networks:
- laravel
composer:
image: composer:latest
container_name: composer
volumes:
- .:/var/www/html
working_dir: /var/www/html
depends_on:
- php-box1
networks:
- laravel
volumes:
db_data: