-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1.06 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
version: '3'
services:
nginx:
container_name: OrderManagementApiNginx
image: nginx:latest
ports:
- "80:80"
links:
- php
volumes:
- ./:/var/www/OrderManagement
- ./images/nginx/vhost.conf:/etc/nginx/conf.d/OrderManagement.conf
working_dir:
/var/www/OrderManagement
php:
container_name: OrderManagementApiPHPFPM
build: ./images/php-fpm
ports:
- "9000:9000"
links:
- db
volumes:
- ./:/var/www/OrderManagement
- ./images/php-fpm/custom.ini:/usr/local/etc/php/conf.d/custom.ini
working_dir:
/var/www/OrderManagement
db:
container_name: OrderManagementApiDatabase
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: OrderManagement
MYSQL_USER: OrderManagement
MYSQL_PASSWORD: OrderManagement
volumes:
data: