-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
44 lines (44 loc) · 944 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
version: '2'
services:
php:
build: ./images/php
links:
- mysql
- postgresql
container_name: php-zend-exam
volumes:
- ./www:/var/www
- ./www/include_path:/include
nginx:
container_name: nginx-zend-exam
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./hosts:/etc/nginx/conf.d:ro
- ./www:/var/www
- ./logs:/var/log/nginx
links:
- php
mysql:
container_name: mariadb-zend-exam
image: mysql:5.7.19
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: qwerty
MYSQL_DATABASE: zend
MYSQL_USER: user
MYSQL_PASSWORD: qwerty
postgresql:
container_name: postgresql-zend-exam
image: postgres:9.6.3
ports:
- "5432:5432"
environment:
- POSTGRES_USER=user
- POSTGRES_DB=zend
- DB_PASS=qwerty
volumes:
- ./postgresql:/var/lib/postgresql