-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.39 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
version: "3"
services:
web:
build: reverse-proxy/
volumes:
- "./ssl:/etc/nginx/ssl"
depends_on:
- backend
- frontend
- files
- database
ports:
- 443:443
frontend:
build:
context: frontend/
dockerfile: Dockerfile.dev
volumes:
- "./frontend/src:/app/src"
- "./frontend/config:/app/config"
- "./frontend/startdebug.sh:/app/startdebug.sh"
- "./frontend/protractor.conf.js:/app/protractor.conf.js"
- "./frontend/tsconfig.json:/app/tsconfig.json"
- "./frontend/tsconfig.webpack.json:/app/tsconfig.webpack.json"
- "./frontend/tslint.json:/app/tslint.json"
- "./frontend/typedoc.json:/app/typedoc.json"
- "./frontend/webpack.config.js:/app/webpack.config.js"
backend:
build:
context: backend/
dockerfile: Dockerfile.dev
volumes:
- "./backend/target/server.war:/usr/local/tomcat/webapps/ROOT.war"
- "./backend/logs:/usr/local/tomcat/logs"
depends_on:
- database
ports:
- "8000:8000"
environment:
# y: wait for debugger to connect, n: run immediately
JPDA_SUSPEND: n
database:
image: postgres:alpine
volumes:
- "data:/var/lib/postgresql/data"
- "./database/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d"
files:
build:
context: music-server/
dockerfile: Dockerfile.dev
volumes:
data: