-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (62 loc) · 1.99 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
services:
java:
build:
context: .
dockerfile: java.Dockerfile
target: java
args:
- DB_URL=${DB_URL:-jdbc:postgresql://db:5432/impactoambiental}
- DB_USERNAME=${DB_USERNAME:-jpademo}
- DB_PASSWORD=${DB_PASSWORD:-jpademo}
container_name: impactoambiental-java
ports:
- ${PORT:-8080}:${PORT:-8080}
environment:
- GEODDS_API_KEY=${GEODDS_API_KEY}
- PORT=${PORT:-8080}
- RECOMENDACIONES_TEMPLATE=${RECOMENDACIONES_TEMPLATE}
- RECOMENDACIONES_URL=${RECOMENDACIONES_URL:-recomendaciones}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- WEAK_PASSWORDS_FILE=${WEAK_PASSWORDS_FILE:-/app/target/classes/weak_passwords.txt}
- WHATSAPP_API_KEY=${WHATSAPP_API_KEY}
- WHATSAPP_API_ID=${WHATSAPP_API_ID}
depends_on:
- db
cron:
build:
context: .
dockerfile: cron.Dockerfile
target: cron
args:
- CRON_ENVIO_GUIA=${CRON_ENVIO_GUIA:-* * * * *}
- DB_URL=${DB_URL:-jdbc:postgresql://db:5432/impactoambiental}
- DB_USERNAME=${DB_USERNAME:-jpademo}
- DB_PASSWORD=${DB_PASSWORD:-jpademo}
container_name: impactoambiental-cron
environment:
- GEODDS_API_KEY=${GEODDS_API_KEY}
- RECOMENDACIONES_TEMPLATE=${RECOMENDACIONES_TEMPLATE}
- RECOMENDACIONES_URL=${RECOMENDACIONES_URL:-recomendaciones}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- WEAK_PASSWORDS_FILE=${WEAK_PASSWORDS_FILE:-/app/target/classes/weak_passwords.txt}
- WHATSAPP_API_KEY=${WHATSAPP_API_KEY}
- WHATSAPP_API_ID=${WHATSAPP_API_ID}
depends_on:
- db
db:
image: postgres:9.3-alpine
container_name: impactoambiental-db
ports:
- 5432:5432
environment:
- POSTGRES_DB=impactoambiental
- POSTGRES_USER=jpademo
- POSTGRES_PASSWORD=jpademo
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data:
name: impactoambiental-data
external: true