-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 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
version: '3.8'
services:
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- '5672:5672' # RabbitMQ main port
- '15672:15672' # RabbitMQ management UI
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
# exex_manager_js:
# image: exex_manager_js # Use the tag you used for your local build
# container_name: exex_manager_js
# build:
# context: ./js_build # Specify the build context
# depends_on:
# - rabbitmq # Ensure RabbitMQ starts before this service
# environment:
# RABBITMQ_URL: amqp://user:password@rabbitmq:5672 # URL to access RabbitMQ
# ports:
# - '3000:3000' # Example port mapping for your app, adjust as necessary
exex_manager:
image: exex_manager # Use the tag you used for your local build
container_name: exex_managers
build:
context: ../rambda_exex_manager # Specify the build context
depends_on:
- rabbitmq # Ensure RabbitMQ starts before this service
- postgres
environment:
RABBITMQ_URL: amqp://user:password@rabbitmq:5672 # URL to access RabbitMQ
POSTGRES_URL: postgresql://user:password@postgres:5432/rambda # URL to access RabbitMQ
DOCKER_SOCKET_PATH: /var/run/docker.sock
ABSOLUTE_DATA_FILE_PATH: /mnt/ssd/rambda/shared_data
ports:
- '3000:3000' # Example port mapping for your app, adjust as necessary
# Map docker runner from outside the container in the container
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Replace with host file system, should be same as above
- /mnt/ssd/rambda/shared_data:/app/shared_data
- /tmp/reth.ipc:/tmp/reth.ipc
# extra_hosts:
# - 'host.docker.internal:host-gateway'
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: rambda
ports:
- '5432:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data