-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
48 lines (42 loc) · 949 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
version: "3.1"
services:
redis:
image: redis:alpine
container_name: docker-redis
networks:
- default
mysql:
image: daocloud.io/library/mysql:5.7
container_name: docker-mysql
working_dir: /app
volumes:
- .:/app
- ./datadir:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=secret
ports:
- "8002:3306"
networks:
- default
webserver:
image: nginx:alpine
container_name: docker-webserver
working_dir: /app
volumes:
- .:/app
- ./nginx:/etc/nginx/conf.d
ports:
- "80:80"
networks:
- default
php-fpm:
build: ./php-fpm
container_name: docker-php-fpm
working_dir: /app
volumes:
- .:/app
- ./php-fpm/php-ini-overrides.ini:/usr/local/etc/php/conf.d/overrides.ini
networks:
- default
networks:
default: