-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (68 loc) · 1.84 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '2'
volumes:
logs:
driver: local
services:
interview:
container_name: interview-php
build:
context: ./microservices/interview/
dockerfile: DockerfilePHP
working_dir: /var/www/html
command: php -S 0.0.0.0:8081 -t public
environment:
docker: "true"
ports:
- 8081:8081
volumes:
- ./microservices/interview/:/var/www/html
- ./microservices/interview/logs:/var/www/html/logs
links:
- db
db:
container_name: interview-mysql
build:
context: ./microservices/interview/
dockerfile: DockerfileMysql
ports:
- 3036:3036
volumes:
- ./data/dockermysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root@123
MYSQL_USER: rlabh
MYSQL_PASSWORD: rlabh@123
MYSQL_DATABASE: slimapp
users:
container_name: users-php
build:
context: ./microservices/users/
dockerfile: DockerfilePHP
working_dir: /var/www/html
command: php -S 0.0.0.0:8082 -t public
environment:
docker: "true"
ports:
- 8082:8082
volumes:
- ./microservices/users/:/var/www/html
- ./microservices/users/logs:/var/www/html/logs
links:
- mongodb
mongodb:
image: mongo:3.6.3
container_name: users-mongodb
ports:
- 27017:27017
command: --noauth
volumes:
- ./data/dockermongo:/data/db
gui:
container_name: gui-container
build:
context: ./ui/
dockerfile: DockerfileGui
ports:
- 8080:80
volumes:
- ./ui/:/var/www/html