-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
50 lines (49 loc) · 1.07 KB
/
docker-compose.yaml
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
version: "3.7"
services:
postgres:
image: jkerr0/covoting-postgres
build: postgres
container_name: "covoting-postgres"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=covoting
ports:
- "5432:5432"
volumes:
- ./postgres/db-data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3.11-alpine
container_name: "covoting-rabbitmq"
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
ports:
- "5672:5672"
- "15672:15672"
- "61613:61613"
volumes:
- ./rabbitmq:/etc/rabbitmq
spring:
image: jkerr0/covoting-spring
build: .
container_name: "covoting-spring"
environment:
- SPRING_PROFILES_ACTIVE=prod
ports:
- "8080:8080"
depends_on:
- postgres
- rabbitmq
profiles:
- prod
frontend:
image: jkerr0/covoting-frontend
build: src/main/frontend
container_name: "covoting-frontend"
ports:
- "80:80"
depends_on:
- spring
profiles:
- prod