-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (71 loc) · 1.79 KB
/
docker-compose.yml
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
services:
dbcrypto:
image: postgres:16.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: CryptoDb
dbusers:
image: postgres:16.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: UsersDb
dbassets:
image: postgres:16.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: AssetsDB
crypto:
container_name: crypto
build:
context: ./crypto
dockerfile: ./Dockerfile
image: my_crypto:latest
environment:
COIN_MARKET_CAP_API_KEY: 14d723cf-09a1-42e5-8fa5-1a8e38dc296b
CC_API_KEY: ba752178db9de6faaad643a0655109886b60da6d91364abbf282ed0325a995ff
SPRING_DATASOURCE_URL: jdbc:postgresql://dbcrypto:5432/CryptoDb
depends_on:
- dbcrypto
users:
container_name: users
build:
context: ./users
dockerfile: ./Dockerfile
image: my_users:latest
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://dbusers:5432/UsersDb
depends_on:
- dbusers
asset:
container_name: asset
build:
context: ./asset
dockerfile: ./Dockerfile
image: my_asset:latest
depends_on:
- crypto
- users
- dbassets
environment:
USERS_URL: http://users:8081
CRYPTO_URL: http://crypto:8083
SPRING_DATASOURCE_URL: jdbc:postgresql://dbassets:5432/AssetsDB
back-to-front:
container_name: back-to-front
build:
context: ./back-to-front
dockerfile: ./Dockerfile
image: my_back-to-front:latest
depends_on:
- crypto
- asset
- users
environment:
USERS_URL: http://users:8081
ASSETS_URL: http://asset:8082
CRYPTO_URL: http://crypto:8083
ports:
- 8080:8080