-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
40 lines (40 loc) · 1.03 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
version: '2.1'
services:
pc-assets:
image: node:6.9-slim
working_dir: /usr/src
ports:
- "8284:8284"
environment:
- VERSION=${TRAVIS_COMMIT}
volumes:
- ./src/app-frontend:/usr/src
- ./nginx/_site:/usr/dist
# Ensure node_modules cache doesn't clash with other jobs on CI.
- /var/cache/pc-demo-node-modules:/usr/src/node_modules
entrypoint: npm
command: run bundle
pc-api-server:
image: openjdk:8-jre
ports:
- "7070:7070"
volumes:
- ./src/app-backend/:/opt/app-backend/
- ./src/app-backend/.sbt:/root/.sbt
- ${HOME}/.ivy2/:/root/.ivy2
- ${HOME}/.aws:/root/.aws:ro
environment:
- AWS_PROFILE=geotrellis
- JAVA_OPTS="-Xmx1G"
working_dir: /opt/app-backend/
entrypoint: ./sbt
command: ~server/reStart
pc-nginx:
image: nginx:1.13
depends_on:
- pc-api-server
ports:
- "8000:443"
volumes:
- ./nginx/_site:/var/www
- ./nginx/etc/nginx/nginx.conf:/etc/nginx/nginx.conf