-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
94 lines (85 loc) · 1.85 KB
/
compose.yaml
File metadata and controls
94 lines (85 loc) · 1.85 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
92
93
94
name: ecommerce-django
services:
ecom-angular-app:
build:
context: ./angular
dockerfile: Dockerfile
container_name: ecommerce-angular
ports:
- "4200:4200"
networks:
- app-network
volumes:
- ./angular/:/app
mem_limit: 1024m
ecom-django-app:
build:
context: ./django
dockerfile: Dockerfile
container_name: ecommerce-django
ports:
- "8000:8000"
networks:
- app-network
volumes:
- ./django/:/app
environment:
- PYTHONUNBUFFERED=1
mem_limit: 512m
stdin_open: true
tty: true
ecom-postgres-db:
image: postgres:latest
container_name: ecommerce-postgres
# restart: always
networks:
- app-network
volumes:
- postgres-volume:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass123
POSTGRES_DB: ecommerce_db
mem_limit: 512mb
ecom-redis-db:
image: redis:latest
container_name: ecommerce-redis
networks:
- app-network
ports:
- "6379:6379"
volumes:
- redis-volume:/data
mem_limit: 256m
cloudflared-tunnel:
container_name: ecommerce-cloudflared-tunnel
image: cloudflare/cloudflared:latest
networks:
- app-network
depends_on:
- ecom-django-app
command: tunnel --url http://ecom-django-app:8000
mem_limit: 128m
ecom-minio-storage:
image: quay.io/minio/minio
container_name: ecommerce-minio
networks:
- app-network
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: user123
MINIO_ROOT_PASSWORD: pass123123
command: server /data --console-address ":9001"
volumes:
- minio-volume:/data
networks:
app-network:
driver: bridge
volumes:
postgres-volume:
redis-volume:
minio-volume: