-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
63 lines (58 loc) · 1.21 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
version: '3'
networks:
cbdc-wallet:
driver: bridge
services:
frontend:
build: .
image: cbdc-frontend
command: http-server dist
ports:
- 8080:8080
#volumes:
# - $PWD/src:/app/src
# - $PWD/dist:/app/dist
environment:
ENVIRONMENT: local
BASE_URL: "http://localhost:3000/api/"
depends_on:
- api
networks:
- cbdc-wallet
api:
build:
context: .
dockerfile: Dockerfile-server
image: cbdc-api
environment:
ENVIRONMENT: local
BASE_URL: "http://localhost:3000/api/"
DB_HOST: db
DB_NAME: wallet_dev
DB_USER: postgres
DB_PASSWORD: wallet_dev_password
DB_PORT: "5432"
ports:
- "3000:3000"
#volumes:
#- $PWD/server:/app/server
links:
- db
depends_on:
- db
command:
- /app/scripts/start-dev.sh
networks:
- cbdc-wallet
db:
image: postgres:13.4
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: wallet_dev_password
POSTGRES_DB: wallet_dev
ports:
- "5432:5432"
networks:
- cbdc-wallet
#volumes:
# - ./server/init.sql:/docker-entrypoint-initdb.d/init.sql