forked from saleor/saleor-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (97 loc) · 2.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
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
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.4"
services:
api:
image: ghcr.io/saleor/saleor:3.14.2
ports:
- 8000:8000
restart: unless-stopped
networks:
- saleor-backend-tier
stdin_open: true
tty: true
depends_on:
- db
- redis
- jaeger
volumes:
# shared volume between worker and api for media
- saleor-media:/app/media
env_file:
- common.env
- backend.env
environment:
- JAEGER_AGENT_HOST=jaeger
- DASHBOARD_URL=http://localhost:9000/
- ALLOWED_HOSTS=localhost,api
dashboard:
image: ghcr.io/saleor/saleor-dashboard:3.14.4
ports:
- 9000:80
restart: unless-stopped
db:
image: library/postgres:13-alpine
ports:
- 5432:5432
restart: unless-stopped
networks:
- saleor-backend-tier
volumes:
- saleor-db:/var/lib/postgresql/data
- ./replica_user.sql:/docker-entrypoint-initdb.d/replica_user.sql
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
redis:
image: library/redis:7.0-alpine
ports:
- 6379:6379
restart: unless-stopped
networks:
- saleor-backend-tier
volumes:
- saleor-redis:/data
worker:
image: ghcr.io/saleor/saleor:3.14.2
command: celery -A saleor --app=saleor.celeryconf:app worker --loglevel=info -B
restart: unless-stopped
networks:
- saleor-backend-tier
env_file:
- common.env
- backend.env
depends_on:
- redis
- mailpit
volumes:
# shared volume between worker and api for media
- saleor-media:/app/media
jaeger:
image: jaegertracing/all-in-one
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
restart: unless-stopped
networks:
- saleor-backend-tier
mailpit:
image: axllent/mailpit
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui. Visit http://localhost:8025/ to check emails
restart: unless-stopped
networks:
- saleor-backend-tier
volumes:
saleor-db:
driver: local
saleor-redis:
driver: local
saleor-media:
networks:
saleor-backend-tier:
driver: bridge