forked from box/Anemometer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-alpine.yml
56 lines (52 loc) · 1.29 KB
/
docker-compose-alpine.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
version: '3'
services:
mysql:
container_name: anemometer-mysql
build:
context: .
dockerfile: docker/mysql/Dockerfile
command: mysqld --sql-mode="STRICT_ALL_TABLES,NO_AUTO_CREATE_USER" --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --explicit-defaults-for-timestamp=ON --max_allowed_packet=32M
ports:
- "13306:3306"
networks:
- mysql
volumes:
- ./backups/:/backups/
environment:
- MYSQL_ROOT_PASSWORD=passw0rd
- MYSQL_DATABASE=anemometer
- MYSQL_USER=anemometer
- MYSQL_PASSWORD=passw0rd
php-fpm:
container_name: anemometer-fpm
build:
context: .
dockerfile: docker/fpm/Dockerfile_alpine
networks:
- mysql
- php-fpm
depends_on:
- mysql
environment:
- ANEMOMETER_MYSQL_HOST=anemometer-mysql
- ANEMOMETER_MYSQL_DB=anemometer
- ANEMOMETER_MYSQL_USER=anemometer
- ANEMOMETER_MYSQL_PASS=passw0rd
nginx:
container_name: anemometer-nginx
build:
context: .
dockerfile: docker/nginx/Dockerfile_alpine
ports:
- "10080:80"
networks:
php-fpm: {}
nginx: {}
depends_on:
- php-fpm
environment:
- NGINX_FASTCGI_PASS=anemometer-fpm:9000
networks:
mysql: {}
php-fpm: {}
nginx: {}