-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (72 loc) · 1.83 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
75
76
77
services:
localstack:
image: localstack/localstack
container_name: localstack
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # External services port range
environment:
- DEBUG=${DEBUG-}
- DOCKER_HOST=unix:///var/run/docker.sock
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=us-east-1
- AWS_REGION=us-east-1
- AWS_ENDPOINT_URL=http://localstack:4566
- AWS_PAGER=""
- SERVICES=s3
volumes:
- localstack-data:/data
restart: on-failure
networks:
- custom-network
# Check: aws configure list
postgres:
image: postgres
container_name: postgres-db
environment:
- POSTGRES_LOGGING=true
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- "5432:5432/tcp"
volumes:
- postgres-db:/var/lib/postgresql/data
restart: on-failure
networks:
- custom-network
# command: psql "host=localhost port=5432 user=postgres password=postgres sslmode=prefer"
Mgtt.ECom.Web:
image: ecommerce-service-be:0.1.0
build:
context: .
dockerfile: backend/Mgtt.ECom/src/Mgtt.ECom.Web/Dockerfile
env_file:
- Mgtt.ECom.Web.env
depends_on:
- postgres
- localstack
ports:
- "5000:8080/tcp"
restart: on-failure
networks:
- custom-network
# Frontend
e-commerce-service:
image: ecommerce-service-fe:0.1.0
build:
context: .
dockerfile: frontend/e-commerce-service/Dockerfile
depends_on:
- postgres
- localstack
ports:
- "4200:80/tcp"
restart: on-failure
networks:
- custom-network
volumes:
postgres-db:
localstack-data:
networks:
custom-network: