-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (60 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
66 lines (60 loc) · 1.36 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: nexus_postgres
environment:
POSTGRES_DB: nexusdb
POSTGRES_USER: nexus
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
networks:
- nexus-network
volumes:
- postgres_data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: nexus_rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
networks:
- nexus-network
server:
build: ./server
container_name: nexus_server
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/nexusdb
SPRING_DATASOURCE_USERNAME: nexus
SPRING_DATASOURCE_PASSWORD: password
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_RABBITMQ_PORT: 5672
SPRING_RABBITMQ_USERNAME: guest
SPRING_RABBITMQ_PASSWORD: guest
depends_on:
- postgres
- rabbitmq
networks:
- nexus-network
client:
build: ./client
container_name: nexus_client
ports:
- "5173:80"
environment:
- VITE_API_URL=http://localhost:8080/api
depends_on:
- server
networks:
- nexus-network
networks:
nexus-network:
driver: bridge
volumes:
postgres_data: