This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
105 lines (105 loc) · 2.85 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '2.3'
services:
database:
image: quay.io/azavea/postgis:2.2-postgres9.5-slim
environment:
- POSTGRES_USER=planit
- POSTGRES_PASSWORD=planit
- POSTGRES_DB=planit
healthcheck:
test: ["CMD", "pg_isready", "-U", "planit"]
interval: 3s
timeout: 3s
retries: 3
start_period: 5s
angular:
image: planit-spa
build:
context: ./src/angular
dockerfile: Dockerfile
volumes:
- "./src/angular/planit/src:/opt/planit/angular/planit/src"
- "./src/angular/planit/yarn.lock:/opt/planit/angular/planit/yarn.lock"
- "./src/angular/planit/package.json:/opt/planit/angular/planit/package.json"
- "./nginx/dist:/opt/planit/angular/planit/dist"
ports:
- "4210:4210"
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
depends_on:
- django
ports:
- "8102:443"
volumes:
- "./nginx/dist:/var/www"
- "./nginx/static:/var/static"
- "./nginx/etc/nginx/conf.d:/etc/nginx/conf.d"
- "./nginx/etc/nginx/includes/security-headers.conf:/etc/nginx/includes/security-headers.conf"
- "./nginx/etc/nginx/nginx.conf:/etc/nginx/nginx.conf"
django:
image: planit-app
build:
context: ./src/django
dockerfile: Dockerfile
depends_on:
database:
condition: service_healthy
env_file:
- ./src/django/docker-compose.env
command:
- "--workers=2"
- "--timeout=60"
- "--bind=0.0.0.0:8080"
- "--reload"
- "--log-level=debug"
- "--access-logfile=-"
- "--error-logfile=-"
- "-kgevent"
- "planit.wsgi"
ports:
- "8100:8080"
- "8101:8081"
links:
- database:database.service.planit.internal
volumes:
- ./src/django:/usr/src
- ./nginx/static:/static
- $HOME/.aws:/root/.aws:ro
area-indicators:
image: openjdk:11-jdk
command:
- "api/run"
entrypoint: java
command:
- "-jar"
- "area-indicators-api-assembly.jar"
environment:
- AWS_PROFILE=planit
- COURSIER_CACHE=/root/.coursier
- ENVIRONMENT=development
ports:
- "8108:8108"
volumes:
- ./src/area-indicators/:/opt/area-indicators/
- $HOME/.sbt:/root/.sbt
- $HOME/.coursier:/root/.coursier
- ./.bintray:/root/.bintray
- $HOME/.ivy2:/root/.ivy2
- $HOME/.aws:/root/.aws:ro
working_dir: /opt/area-indicators/api/target/scala-2.11/
sbt:
image: hseeberger/scala-sbt:11.0.3_1.2.8_2.12.8
environment:
- AWS_PROFILE=planit
- COURSIER_CACHE=/root/.coursier
volumes:
- ./src/area-indicators/:/opt/area-indicators
- $HOME/.sbt:/root/.sbt
- $HOME/.coursier:/root/.coursier
- ./.bintray:/root/.bintray
- $HOME/.ivy2:/root/.ivy2
- $HOME/.aws:/root/.aws:ro
working_dir: /opt/area-indicators/
entrypoint: ./sbt