-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (56 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
56 lines (56 loc) · 1.25 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
version: "2"
services:
web:
image: nginx:latest
links:
- phpapp
ports:
- 9080:80
- 9443:443
volumes:
- ./app:/var/www/app
- ./container/var/log/nginx:/var/log/nginx
- ./container/etc/nginx/conf.d:/etc/nginx/conf.d
networks:
- front
- back
phpapp:
build:
context: ./container
dockerfile: Dockerfile.nginx
links:
- redis
- database
- memcached
volumes:
- ./app:/var/www/app
networks:
- back
redis:
image: redis:latest
volumes:
- ./container/data:/data
networks:
- back
memcached:
image: memcached:latest
networks:
- back
database:
image: percona:latest
environment:
- MYSQL_ROOT_PASSWORD=password
ports:
- 3306:3306
volumes:
- ./container/var/log/mysql:/var/log/mysql
- ./container/var/lib/mysql:/var/lib/mysql
networks:
- back
networks:
default:
driver: host
front:
driver: bridge
back:
driver: bridge