-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (55 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
46
47
48
49
50
51
52
53
54
55
version: '3'
services:
app:
build:
args:
APP_DOCUMENT_ROOT: /var/www/apps/app
context: .
dockerfile: ./build/app/Dockerfile
image: iutlr-info2-dw-app-angular
container_name: iutlr-info2-dw-app-angular
ports:
- 4200:4200
volumes:
- "./app:/var/www/apps/app"
#- /var/www/apps/app-angular/node_modules
networks:
- back-network
depends_on:
- api
- db
api:
build:
args:
API_DOCUMENT_ROOT: /var/www/html/api/public
context: ./build/api
image: iutlr-info2-apache-sf5-api
container_name: iutlr-info2-apache-sf5-api
hostname: apihost
ports:
- 9999:80
volumes:
- ./api:/var/www/html/api:delegated
networks:
- back-network
depends_on:
- db
db:
build:
context: build/mysql
image: iutlr-info-mysql5.7
container_name: iutlr-info-mysql5.7
ports:
- 3306:3306
volumes:
- "./mysql/:/var/lib/mysql"
environment:
MYSQL_DATABASE: dbproject
MYSQL_USER: dbuser
MYSQL_PASSWORD: dbpassword
MYSQL_ROOT_PASSWORD: dbroot
networks:
- back-network
networks:
back-network:
driver: bridge