-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.38 KB
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
version: '2'
services:
app:
image: 'ghcr.io/java-dzgs/ingreedio-api:develop'
ports:
- '8080:8080'
container_name: app
depends_on:
- postgres
- mongo
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/ingreedio
- SPRING_DATASOURCE_USERNAME=compose-postgres
- SPRING_DATASOURCE_PASSWORD=compose-postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- SPRING_DATA_MONGODB_HOST=mongo
- SPRING_DATA_MONGODB_USERNAME=compose-mongo
- SPRING_DATA_MONGODB_PASSWORD=compose-mongo
postgres:
image: 'postgres:13.1-alpine'
container_name: postgres
ports:
- '5431:5432'
environment:
- POSTGRES_USER=compose-postgres
- POSTGRES_PASSWORD=compose-postgres
- POSTGRES_DB=ingreedio
mongo:
image: 'mongo'
container_name: mongo
restart: always
ports:
- '27016:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: compose-mongo
MONGO_INITDB_ROOT_PASSWORD: compose-mongo
mongo-express:
image: 'mongo-express'
container_name: mongo-express
restart: always
ports:
- '8081:8081'
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: compose-mongo
ME_CONFIG_MONGODB_ADMINPASSWORD: compose-mongo
ME_CONFIG_MONGODB_URL: mongodb://compose-mongo:compose-mongo@mongo:27017/
ME_CONFIG_BASICAUTH: false