generated from DAM/ts-TEMPLATE
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
services:
|
|
cheminformatics-ts:
|
|
image: tailscale/tailscale:latest
|
|
hostname: cheminformatics
|
|
container_name: cheminformatics-ts
|
|
environment:
|
|
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
|
|
- TS_STATE_DIR=/var/lib/tailscale
|
|
- TS_SERVE_CONFIG=/config/serve.json
|
|
volumes:
|
|
- ./tailscale/tailscale-data:/var/lib/tailscale
|
|
- ./tailscale/config:/config
|
|
- /dev/net/tun:/dev/net/tun
|
|
cap_add:
|
|
- net_admin
|
|
- sys_module
|
|
restart: unless-stopped
|
|
cheminformatics-backend:
|
|
build:
|
|
context: ./cheminformatics-microservice/
|
|
dockerfile: Dockerfile
|
|
container_name: cheminformatics-backend
|
|
environment:
|
|
- cheminformatics_URL=https://docs.api.naturalproducts.net
|
|
- RELEASE_VERSION=v2.6.0
|
|
- WORKERS=2 # Make workers configurable
|
|
# ports:
|
|
# - 8080:8080
|
|
healthcheck:
|
|
test: curl -f http://localhost:8080/latest/chem/health || exit 1
|
|
interval: 90s
|
|
timeout: 10s
|
|
retries: 20
|
|
start_period: 60s
|
|
restart: unless-stopped
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
network_mode: service:cheminformatics-ts
|
|
depends_on:
|
|
- cheminformatics-ts
|
|
cheminformatics-frontend:
|
|
build:
|
|
context: ./cheminformatics-microservice/frontend/
|
|
dockerfile: Dockerfile
|
|
container_name: cheminformatics-ui
|
|
environment:
|
|
- REACT_APP_API_URL=http://localhost:8080
|
|
# ports:
|
|
# - 80:80
|
|
restart: unless-stopped
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
network_mode: service:cheminformatics-ts
|
|
depends_on:
|
|
- cheminformatics-ts |