-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.36 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
version: '3.1'
volumes:
mongo_data:
services:
mongo:
image: mongo
container_name: comments-mongo
restart: always
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: PleaseChangeMe
mongo-express:
image: mongo-express
container_name: comments-mongo-express
restart: always
ports:
- 8082:8081
depends_on:
- mongo
environment:
ME_CONFIG_BASICAUTH_USERNAME: tobi
ME_CONFIG_BASICAUTH_PASSWORD: PleaseChangeMe
ME_CONFIG_MONGODB_URL: mongodb://root:PleaseChangeMe@mongo:27017/
comments:
image: registry.tobisyurt.net/comments
container_name: comments-webapp
restart: always
ports:
- 8071:8080
depends_on:
- mongo
labels:
- "com.centurylinklabs.watchtower.enable=true"
environment:
# SPRING_PROFILES_ACTIVE=prod --> not needed
IP_BLOCK_TIME: 900
QUIZ_COUNT: 5
QUIZ_VALIDITY_SECONDS: 120
QUIZ_COMPLEXITY: 2
ADMIN_NAME: the_bloggers_name
SPRING_DATA_MONGODB_HOST: mongo
SPRING_DATA_MONGODB_DATABASE: comments
SPRING_DATA_MONGODB_AUTHENTICATION_DATABASE: admin
SPRING_DATA_MONGODB_USERNAME: root
SPRING_DATA_MONGODB_PASSWORD: PleaseChangeMe
SPRING_SECURITY_USER_NAME: user
SPRING_SECURITY_USER_PASSWORD: PleaseChangeMe