- Install Docker: Ensure Docker is installed on your system.
- Install Docker Compose: Version > 1.25.0 is required.
- VPN Connection (if required): For services requiring access to
wsdb_cache
, ensure you are connected to the VPN or have valid SSH parameters configured in the environment file.
-
Create Environment Files:
Each service requires a.env
file for configuration, which should be created in thedocker/dev
directory.- Each service includes an
.env.template
file in thedocker/dev
folder. Copy the content of the template to a new.env
file and fill in the appropriate values. - Use the same template structure for all services.
- Each service includes an
-
Set Up the
DATA_STORE_PATH
:
In the.env
file, you will find a parameter calledDATA_STORE_PATH
. This should point to a local folder on your machine. The folder must have the following structure:DATA_STORE_PATH/ ├── cache/ │ ├── newsletter/ │ ├── newsletter_data.json ├── log/ ├── plots/ ├── targets/ ├── cpcsArchiveFile/ ├── fits/ ├── kafka/
Make sure to create all these subfolders in the directory specified by
DATA_STORE_PATH
. -
VPN or SSH Configuration:
For thecpcs
service, you will need access to thewsdb_cache
database. To do this:- Connect via VPN to the Cambridge WSDB database.
- Alternatively, configure SSH parameters in the
.env
file for the service.
The bhtom2
service must be started first as it initializes the main database.
- Navigate to the
docker/dev
directory of thebhtom2
service:cd bhtom2/docker/dev
- Build and run the
bhtom2
service:docker-compose up -d --build
Once the bhtom2
service is running, start the other services in any order:
- Navigate to the
docker/dev
directory of theupload-service
:cd upload-service/docker/dev
- Build and run the service:
docker-compose up -d --build
- Navigate to the
docker/dev
directory of thecpcs
service:cd cpcs/docker/dev
- Build and run the service:
docker-compose up -d --build
- Navigate to the
docker/dev
directory of theharvester
service:cd harvester/docker/dev
- Build and run the service:
docker-compose up -d --build
To ensure all services are running correctly, check their logs:
docker-compose logs -f