-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (41 loc) · 1.09 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
version: "2.2"
networks:
assignment-project-network:
volumes:
mysqldata:
driver: "local"
services:
assignment-project:
container_name: assignment-project
build:
context: .
dockerfile: Dockerfile
depends_on:
- assignment-mysql
volumes:
- .:/var/www/html/public
- /var/www/html/public/vendor
- /var/www/html/public/node_modules
ports:
- 8085:80
- 443:443
environment:
- WEB_DOCUMENT_ROOT=/var/www/html/public/public
networks:
- assignment-project-network
restart: on-failure
assignment-mysql:
container_name: assignment-mysql
image: mysql:5.7
volumes:
- mysqldata:/var/lib/mysql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: assignment
MYSQL_USER: assignment
MYSQL_ROOT_PASSWORD: secret
MYSQL_PASSWORD: secret
networks:
- assignment-project-network
restart: on-failure