forked from modstart/ModStartBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.28 KB
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
version: '3'
services:
php:
user: "www-data:www-data"
build:
context: .
dockerfile: Dockerfile
platform: linux/amd64
volumes:
- .:/var/www/html:rw
- ./storage/:/var/www/html/storage/:rw
- ./php.ini:/usr/local/etc/php/php.ini:rw
environment:
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=modstart_blog
- DB_USERNAME=modstart
- DB_PASSWORD=secret
networks:
- app-network
nginx:
image: nginx:alpine
platform: linux/amd64
ports:
- "80:80"
volumes:
- .:/var/www/html:rw
- ./nginx.conf:/etc/nginx/conf.d/default.conf:rw
depends_on:
- php
networks:
- app-network
mysql:
image: mysql:5.7
platform: linux/amd64
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: modstart_blog
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: secret
MYSQL_USER: modstart
command: >
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--skip-host-cache
--innodb_use_native_aio=0
volumes:
- dbdata:/var/lib/mysql
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
dbdata:
driver: local