-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (41 loc) · 1.19 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:
db-admin-assignment-network:
volumes:
mysqldata:
driver: "local"
services:
db-admin-assignment-app:
container_name: db-admin-assignment-app
build:
context: .
dockerfile: Dockerfile
depends_on:
- db-admin-assignment-mysql
volumes:
- .:/var/www/html/public
- /var/www/html/public/vendor
- /var/www/html/public/node_modules
ports:
- 8091:80
environment:
- WEB_DOCUMENT_ROOT=/var/www/html/public/public
networks:
- db-admin-assignment-network
restart: on-failure
db-admin-assignment-mysql:
container_name: db-admin-assignment-mysql
image: mysql:5.7
volumes:
- mysqldata:/var/lib/mysql
- ./database/imports/:/docker-entrypoint-initdb.d
ports:
- 3311:3306
environment:
MYSQL_DATABASE: db_admin_assignment
MYSQL_USER: db_admin_assignment
MYSQL_ROOT_PASSWORD: secret
MYSQL_PASSWORD: secret
networks:
- db-admin-assignment-network
restart: on-failure