-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
91 lines (83 loc) Β· 2.04 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
91 lines (83 loc) Β· 2.04 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
x-common-variables: &common-env
ASPNETCORE_ENVIRONMENT: Development
JWT_ISSUER: ${JWT_ISSUER}
JWT_AUDIENCE: ${JWT_AUDIENCE}
JWT_KEY: ${JWT_KEY}
x-common-args: &common-args
GITHUB_USERNAME: ${GITHUB_USERNAME}
GITHUB_TOKEN: ${GITHUB_TOKEN}
services:
angular-ui:
build:
dockerfile: Dockerfile.local
volumes:
- ./src/ui/web:/app
- /app/node_modules
gateway:
build:
dockerfile: Dockerfile.local
args:
<<: *common-args
ports:
- "8080:8080"
volumes:
- ./src/gateway:/app/src
environment:
<<: *common-env
auth-service:
build:
dockerfile: Dockerfile.local
args:
<<: *common-args
volumes:
- ./src/services/auth:/app/src
depends_on:
- db
environment:
<<: *common-env
SQL_CONNECTION_STRING: ${SQL_CONNECTION_STRING_AUTH}
task-service:
build:
dockerfile: Dockerfile.local
args:
<<: *common-args
volumes:
- ./src/services/tasks:/app/src
depends_on:
- db
environment:
<<: *common-env
SQL_CONNECTION_STRING: ${SQL_CONNECTION_STRING_TASK}
analytics-service:
build:
dockerfile: Dockerfile.local
depends_on:
- db
environment:
<<: *common-env
SQL_URL: ${SQL_CONNECTION_STRING_ANALYTICS}
SQL_USERNAME: ${SQL_USERNAME}
SQL_PASSWORD: ${SQL_PASSWORD}
SQL_DDL_AUTO: update
SQL_DRIVER: org.postgresql.Driver
SQL_DIALECT: org.hibernate.dialect.PostgreSQLDialect
recommendations-service:
build:
dockerfile: Dockerfile.local
environment:
<<: *common-env
SQL_CONNECTION_STRING: ${SQL_CONNECTION_STRING_RECOMMENDATIONS}
depends_on:
- db
volumes:
- ./src/services/recommendations/src/app:/app/src/app
db:
image: postgres:14.3
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${SQL_USERNAME}
POSTGRES_PASSWORD: ${SQL_PASSWORD}
volumes:
- ./src/db/data:/var/lib/postgresql/data
- ./src/db/init:/docker-entrypoint-initdb.d/