-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
62 lines (57 loc) · 1.23 KB
/
docker-compose.yaml
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
version: "3.9"
services:
ecommerce_app:
container_name: ecommerce_app
restart: always
volumes:
- .:/ecommerce
- static_volume:/ecommerce/static
image: ecommerce_app:latest
build: .
env_file:
- .env.example
ports:
- "8000:8000"
depends_on:
- ecommerce_db
- ecommerce_redis_host
networks:
- ecommerce_network
ecommerce_redis_host:
container_name: ecommerce_redis_host
image: "redis:7-alpine"
env_file:
- .env.example
expose:
- "6379"
restart: always
networks:
- ecommerce_network
ecommerce_db:
container_name: ecommerce_db
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ecommerce_password
POSTGRES_DB: ecommerce_database
volumes:
- ecommerce_db_data:/var/lib/postgresql/data
networks:
- ecommerce_network
celery_worker:
container_name: ecommerce_celery_worker
image: ecommerce_app:latest
restart: always
build: .
depends_on:
- ecommerce_app
- ecommerce_redis_host
env_file:
- .env.example
networks:
- ecommerce_network
networks:
ecommerce_network:
volumes:
ecommerce_db_data:
static_volume: