-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (57 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
64 lines (57 loc) · 1.26 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
64
version: '3'
services:
nginx:
build: ./service/nginx
ports:
- "80:80"
volumes:
- ./app/:/var/www/
- ./service/nginx/conf/:/etc/nginx/conf.d/
- ./log/nginx:/var/log/nginx/
links:
- phpfpm:phpfpm
restart: always
command: nginx -g 'daemon off;'
networks:
- app
mysql:
build: ./service/mysql
ports:
- "9503:3306"
volumes:
- ./service/mysql/data/:/var/lib/mysql/
restart: always
environment:
MYSQL_ROOT_PASSWORD: root@password
networks:
- app
redis:
build: ./service/redis
volumes:
- ./service/redis/redis.conf:/usr/local/redis/redis.conf
- ./log/redis/redis.log:/usr/local/redis/redis-server.log
- ./service/redis/data/:/usr/local/redis/data/
ports:
- "6380:6379"
restart: always
command: redis-server /usr/local/redis/redis.conf
container_name: redis
networks:
- app
phpfpm:
build: ./service/php
ports:
- "9001:9000"
volumes:
- ./app/:/var/www/
- ./log/php/:/var/log/php-fpm:rw
links:
- mysql
- redis
restart: always
command: php-fpm
networks:
- app
networks:
app:
driver: bridge