-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
108 lines (99 loc) · 2.01 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
107
108
version: "3.9"
services:
postgres:
image: postgres:16.2-alpine3.19
container_name: shopify-db
restart: always
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5433:5432
redis:
image: redis:7.0-alpine3.18
container_name: shopify-redis
ports:
- "6380:6379"
restart: always
volumes:
- redisdata:/data
smtp4dev:
image: rnwood/smtp4dev:v3
container_name: shopify-smtp
ports:
- "5001:5000"
- "2526:2525"
restart: always
web:
container_name: shopify-backend
build:
context: .
dockerfile: Dockerfile
command: ./wait-for-it.sh postgres:5432 -- ./docker-entrypoint.sh
ports:
- "8000:80"
depends_on:
- redis
- postgres
restart: on-failure
env_file:
- docker.env
volumes:
- .:/app
celery:
container_name: shopify-celery
build:
context: .
dockerfile: Dockerfile
command: celery -A storefront worker --loglevel=info
depends_on:
- redis
env_file:
- docker.env
volumes:
- .:/app
celery-beat:
container_name: shopify-celery-beat
build:
context: .
dockerfile: Dockerfile
command: celery -A storefront beat --loglevel=info
depends_on:
- redis
environment:
REDIS_SERVER: redis://redis:6379
volumes:
- .:/app
flower:
container_name: shopify-flower
build:
context: .
dockerfile: Dockerfile
command: celery -A storefront flower
depends_on:
- web
- redis
- celery
ports:
- "5555:5555"
env_file:
- docker.env
tests:
container_name: shopify-tests
build:
context: .
dockerfile: Dockerfile
command: ./wait-for-it.sh postgres:5432 -- locust -f locust/locustfile.py
depends_on:
- redis
- postgres
ports:
- "8080:80"
tty: true
env_file:
- docker.env
volumes:
- .:/app
volumes:
redisdata: