-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (30 loc) · 861 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (30 loc) · 861 Bytes
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
version: '3.2'
services:
esci-db:
image: mongo
restart: always
environment:
- MONGO_INITDB_DATABSE=${DATABASE_NAME:-default}
networks:
- esci-network
command: mongod --port ${DATABASE_INTERNAL_PORT:-27017}
esci-app:
image: esci/app
build:
context: .
dockerfile: ./docker/app/Dockerfile
args:
- PROJECT_VERSION=${PROJECT_VERSION:-1.0.0}
networks:
- esci-network
ports:
- ${APP_SERVER_EXTERNAL_PORT-8080}:${APP_SERVER_INTERNAL_PORT:-8080}
environment:
- admin.login=${APP_ADMIN_LOGIN:-login}
- admin.password=${APP_ADMIN_PASSWORD:-password}
- spring.data.mongodb.uri=mongodb://esci-db:${DATABASE_INTERNAL_PORT:-27017}/${DATABASE_NAME:-default}
- server.port=${APP_SERVER_PORT:-8080}
depends_on:
- esci-db
networks:
esci-network: