-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.17 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
services:
warehouse-backend:
image: openjdk:25-ea-4-jdk-oraclelinux9
container_name: warehouse-backend
ports:
- "8082:8080"
depends_on:
- redis
env_file:
- .env
environment:
SPRING_RABBITMQ_HOST: host.docker.internal
SPRING_RABBITMQ_PORT: 5672
SPRING_RABBITMQ_USERNAME: guest
SPRING_RABBITMQ_PASSWORD: guest
volumes:
- ./target/warehouse-0.0.1-SNAPSHOT.jar:/app/warehouse-0.0.1-SNAPSHOT.jar
- ./logs:/logs
command: [ "java", "-jar", "/app/warehouse-0.0.1-SNAPSHOT.jar" ]
extra_hosts:
- "host.docker.internal:host-gateway"
# warehouse_db:
# image: postgres:latest
# container_name: warehouse_db
# environment:
# POSTGRES_DB: warehouseDB
# POSTGRES_USER: sa
# POSTGRES_PASSWORD: sa
# ports:
# - "5432:5432"
redis:
image: redis:latest
container_name: redis
ports:
- "6390:6379"
expose:
- "9121"
redisinsight:
image: redislabs/redisinsight:latest
container_name: redisinsight
ports:
- "8100:8001"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- redis
restart: unless-stopped