-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (45 loc) · 926 Bytes
/
docker-compose.yml
File metadata and controls
55 lines (45 loc) · 926 Bytes
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
version: "3"
services:
orders:
build: ./orders
environment:
MONGO_HOST: mongodb
PAYMENTS_URL: http://payments:3000
CATALOG_URL: http://catalog:3000
metrics:
build: ./metrics
environment:
MONGO_HOST: mongodb
payments:
build: ./payments
environment:
PG_HOST: pg
PG_USER: admin
PG_PASSWORD: admin
catalog:
build: ./catalog
environment:
REDIS_HOST: redis
mongodb:
image: mongo
restart: always
pg:
image: postgres
restart: always
env_file:
./pg.env
environment:
PGDATA: /data/pg
redis:
image: redis
restart: always
shop:
build: ./shop
restart: always
environment:
VITE_METRICS_URL: http://metrics:3000
VITE_CATALOG_URL: http://catalog:3000
VITE_ORDERS_URL: http://orders:3000
VITE_PAYMENTS_URL: http://payments:3000
ports:
- "80:5000"