-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
53 lines (49 loc) · 1.08 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.8'
networks:
tsvi_network:
driver: bridge
services:
database:
networks:
- tsvi_network
container_name: postgres_database_container
image: postgres:latest
restart: on-failure
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgresql-data:/var/lib/postgresql/data
redis:
networks:
- tsvi_network
container_name: redis_container
image: redis:latest
restart: on-failure
ports:
- "6379:6379"
app:
networks:
- tsvi_network
build:
context: .
dockerfile: ./Dockerfile
ports:
- "80:8086"
container_name: spring_app_container
depends_on:
- database
- redis
restart: on-failure
environment:
- USER_NAME=postgres
- DB_URL=jdbc:postgresql://database:5432/postgres
- PASSWORD=postgres
- CHANGELOG_VERSION=changelog_version-3.3.xml
- REDIS_HOST=redis
- REDIS_PORT=6379
- SEARCH_FEATURE_FLAG=${SEARCH_FEATURE_FLAG:-true}
volumes:
postgresql-data: