This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.98 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
version: "3.8"
services:
postgresdb:
image: "postgis/postgis:14-3.2"
restart: unless-stopped
env_file: ./.env
environment:
- POSTGRES_USER=$POSTGRESDB_USER
- POSTGRES_PASSWORD=$POSTGRESDB_PASSWORD
- POSTGRES_DB=$POSTGRESDB_DATABASE
ports:
- $POSTGRESDB_LOCAL_PORT:$POSTGRESDB_DOCKER_PORT
volumes:
- pgdb:/var/lib/postgresql/data
mongodb:
image: "mongo:5.0.9"
restart: always
env_file: ./.env
ports:
- $MONGODB_LOCAL_PORT:$MONGODB_DOCKER_PORT
volumes:
- mgdb:/data/db
app:
depends_on:
- postgresdb
- mongodb
build: ./bbdd2PromocionApp
restart: on-failure
ports:
- $SPRING_LOCAL_PORT:$SPRING_DOCKER_PORT
volumes:
- .m2:/root/.m2
environment:
- SPRING_MAIN_ALLOW_BEAN_DEFINITION_OVERRIDING=true
- SPRING_DATASOURCE_HIKARI_JDBC_URL=jdbc:postgresql://postgresdb:$POSTGRESDB_DOCKER_PORT/$POSTGRESDB_DATABASE?useSSL=false
- SPRING_DATASOURCE_HIKARI_USERNAME=$POSTGRESDB_USER
- SPRING_DATASOURCE_HIKARI_PASSWORD=$POSTGRESDB_PASSWORD
- SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE=16
- SPRING_JPA_DATABASE_PLATFORM=org.hibernate.spatial.dialect.postgis.PostgisDialect
- SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT=org.hibernate.spatial.dialect.postgis.PostgisDialect
- SPRING_JPA_HIBERNATE_DIALECT=org.hibernate.spatial.dialect.postgis.PostgisDialect
- HIBERNATE_DIALECT=org.hibernate.spatial.dialect.postgis.PostgisDialect
- SPRING_JPA_HIBERNATE_SHOW_SQL=false
- SPRING_JPA_GENERATE_DDL=true
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- SPRING_DATA_MONGODB_HOST=mongodb
- SPRING_DATA_MONGODB_PORT=$MONGODB_DOCKER_PORT
- SPRING_DATA_MONGODB_DATABASE=$MONGODB_DATABASE
- SPRING_DATA_MONGODB_AUTO_INDEX_CREATION=true
- SPRING_BATCH_JOB_ENABLED=false
- SPRING_BATCH_INITIALIZE_SCHEMA=always
- SPRING_BATCH_JDBC.INITIALIZE_SCHEMA=always
stdin_open: true
tty: true
volumes:
pgdb:
mgdb: