-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 942 Bytes
/
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
version: '3'
services:
nginx:
build: $PWD/nginx
ports:
- "1234:1234"
volumes:
- $PWD/nginx/web:/usr/share/nginx/html
- $PWD/nginx/vhost:/etc/nginx/conf.d
- $PWD/nginx/config/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- php
- mysql
networks:
- lan
php:
build: $PWD/php-fpm
ports:
- "9002:9000"
volumes:
- $PWD/nginx/web:/usr/share/nginx/html
networks:
- lan
mysql:
build: $PWD/mysql
ports:
- "9003:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- $PWD/mysql/conf:/etc/mysql/conf.d
- $PWD/mysql/data:/var/lib/mysql
networks:
- lan
redis:
build: $PWD/redis
ports:
- "6380:6379"
volumes:
- $PWD/redis/data:/data
command: --appendonly yes
environment:
- REDIS_PASSWORD=test
networks:
- lan
networks:
lan:
driver: bridge