-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (65 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
68 lines (65 loc) · 1.5 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
67
68
services:
adminer:
image: adminer
container_name: adminer
restart: always
ports:
- "8086:8080" # access via http://localhost:8086
networks:
- notes-net
notes-db:
image: postgres:16
container_name: notes-db
environment:
POSTGRES_USER: notes_user
POSTGRES_PASSWORD: notes_pass
POSTGRES_DB: notes_db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5433:5432"
networks:
- notes-net
notes-service:
container_name: notes-service
build:
context: ./notes-service
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://notes-db:5432/notes_db
SPRING_DATASOURCE_USERNAME: notes_user
SPRING_DATASOURCE_PASSWORD: notes_pass
SPRING_JPA_HIBERNATE_DDL_AUTO: update
SERVER_PORT: 8082
ports:
- "8082:8082"
depends_on:
- notes-db
networks:
- notes-net
auth-service:
container_name: auth-service
build:
context: ./auth-service
environment:
SERVER_PORT: 4000
GATEWAY_SERVICE_URL: http://gateway-service:8080
networks:
- notes-net
ports:
- "4000:4000"
gateway-service:
container_name: gateway-service
build:
context: ./gateway-service
environment:
SERVER_PORT: 4007
NOTES_SERVICE_URL: http://notes-service:8082
AUTH_SERVER_URL: http://auth-service:4000
networks:
- notes-net
ports:
- "4007:4007" # Gateway exposed to host
networks:
notes-net:
volumes:
pgdata: