-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.3 KB
/
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
54
55
56
57
58
59
60
61
version: "3"
services:
#Nginx Service
nginx:
build: ./nginx/
container_name: orderapi_nginx
dns_search: nginx
ports:
- 8080:80
volumes:
- "./src:/var/www/html:ro"
links:
- php
- mysql
depends_on:
- composer
restart: on-failure
#PHP Service
php:
build: ./php/
container_name: orderapi_php
expose:
- 9000
volumes:
- "./src:/var/www/html"
working_dir: /var/www/html
dns_search: php
depends_on:
- mysql
dns:
- 8.8.8.8
- 8.8.4.4
restart: on-failure
#MySQL Service
mysql:
build: ./mysql/
container_name: orderapi_mysql
ports:
- 3306:3306
dns_search: mysql
environment:
MYSQL_ROOT_PASSWORD: "pass@12345"
MYSQL_DATABASE: "packageorders"
restart: on-failure
#Composer Service
composer:
container_name: orderapi_composer
image: koutsoumpos89/composer-php7.1
command: install --ignore-platform-reqs
working_dir: /var/www/html
volumes:
- "./src:/var/www/html"
restart: on-failure
volumes:
db-data:
driver: local