-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (38 loc) · 1 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
version: '3.8'
services:
app:
container_name: app
# For latest deployed image on GitHub uncomment this, and comment existing one
# image: 'ghcr.io/abhishekchd/redis-event-delivery:main'
image: 'abhishekchd/redis-event-delivery:latest'
ports:
- "8080:8080"
depends_on:
- db
links:
- redis
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/redis_events
- SPRING_DATASOURCE_USERNAME=abhishek
- SPRING_DATASOURCE_PASSWORD=abhishek
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- SPRING_DATA_REDIS_HOST=redis
- SPRING_DATA_REDIS_PORT=6379
redis:
image: 'redis:alpine'
container_name: redis
restart: always
ports:
- '6379:6379'
db:
image: 'postgres:alpine'
container_name: db
ports:
- "5432:5432"
environment:
- POSTGRES_DB=redis_events
- POSTGRES_USER=abhishek
- POSTGRES_PASSWORD=abhishek
# Uncomment below to access database in pgAdmin
# expose:
# - "5432:5432"