-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 783 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 783 Bytes
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
version: '2'
services:
apache:
image: 'httpd:alpine'
volumes:
- '/etc/localtime:/etc/localtime:ro'
- './config/apache/apache.conf:/usr/local/apache2/conf/httpd.conf'
depends_on:
- 'backend'
backend:
build:
context: './config/backend'
dockerfile: 'Dockerfile'
ports:
- '18080:8080'
- '18000:8000'
volumes:
- '/etc/localtime:/etc/localtime:ro'
- './src/SPRNGDKCR001:/usr/src/project'
- 'm2_volume:/home/maven/.m2'
depends_on:
- 'db'
db:
build:
context: './config/db'
dockerfile: 'Dockerfile'
ports:
- '13306:3306'
volumes:
- '/etc/localtime:/etc/localtime:ro'
environment:
MYSQL_ROOT_PASSWORD: root123
volumes:
m2_volume: