-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1003 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1003 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
35
36
37
38
39
40
41
42
43
version: "3.9"
services:
postgres:
image: postgres
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- "5432:5432"
volumes:
- "./run/postgres:/var/lib/postgresql/data"
rabbitmq:
image: rabbitmq:3.10.7-management
hostname: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: test
RABBITMQ_DEFAULT_PASSWORD: test
ports:
- "15672:15672"
- "5672:5672"
volumes:
- "./run/rabbitmq:/var/lib/rabbitmq"
gd2spring:
build:
dockerfile: ./Dockerfile
ports:
- "8080:8080"
environment:
GD2SPRING_DATABASE_URL: jdbc:postgresql://postgres:5432/test
GD2SPRING_DATABASE_USER: test
GD2SPRING_DATABASE_PASSWORD: test
GD2SPRING_RABBITMQ_HOST: localhost
GD2SPRING_RABBITMQ_USER: test
GD2SPRING_RABBITMQ_PASSWORD: test
depends_on:
rabbitmq:
condition: service_started
postgres:
condition: service_started