-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.12 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
services:
postgres:
image: postgres:16
environment:
- POSTGRES_DB=aetherchain_db
- POSTGRES_USER=aetherchain_user
- POSTGRES_PASSWORD=aetherchain_pass
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "5432:5432"
neo4j:
image: neo4j:4.4
environment:
- NEO4J_AUTH=neo4j/neo4jpassword
volumes:
- neo4j_data:/data
ports:
- "7474:7474"
- "7687:7687"
rabbitmq:
image: rabbitmq:3.13-management
ports:
- "5672:5672"
- "15672:15672"
web:
build: .
# For our test, we will run the command that SENDS the task.
# It will start, send the task, and then exit.
command: python manage.py process_test_event
volumes:
- ./src:/app
depends_on:
- postgres
- neo4j
- rabbitmq
worker:
build: .
# This service runs the command that LISTENS for tasks.
# It will stay running in the background.
command: celery -A aetherchain worker -l info
volumes:
- ./src:/app
depends_on:
- postgres
- neo4j
- rabbitmq
volumes:
postgres_data:
neo4j_data: