-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 908 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: '3.5'
services:
myorders-app:
build:
context: './docker-assets/php/'
args:
UID: ${UID}
WEB_USER: ${WEB_USER}
WEB_GROUP: ${WEB_GROUP}
container_name: ${APP_NAME}_php
environment:
- APACHE_RUN_USER=#${UID}
- APACHE_RUN_GROUP=#${UID}
volumes:
- ./src:/var/www/html/
ports:
- 8080:80
networks:
backend:
aliases:
- ${APP_NAME}_php
mysql:
image: mysql:5.7
restart: always
ports:
- "3307:3306"
dns_search: mysql
volumes:
- ./run/var:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
container_name: ${APP_NAME}_mysql
networks:
backend:
aliases:
- db
networks:
backend:
name: backend-network