-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 968 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
version: '2'
networks:
app:
driver: 'bridge'
services:
php:
build:
context: .
dockerfile: .docker/php/Dockerfile
volumes:
- ./app:/opt/projects/app
container_name: php
networks:
- app
mysql:
build:
context: .
dockerfile: .docker/mysql/Dockerfile
container_name: db
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
networks:
- app
web:
build:
context: .
dockerfile: .docker/web/Dockerfile
volumes:
- ./app:/opt/projects/app
container_name: web
ports:
- "8080:80"
links:
- php
- mysql
networks:
- app
varnish:
build:
context: .
dockerfile: .docker/varnish/Dockerfile
container_name: varnish
ports:
- "80:80"
links:
- web
networks:
- app