generated from DAM/ts-TEMPLATE
manual init
This commit is contained in:
parent
af0bc98775
commit
511caa8184
@ -1,8 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
{{service}}-ts:
|
cheminformatics-ts:
|
||||||
image: tailscale/tailscale:latest
|
image: tailscale/tailscale:latest
|
||||||
hostname: {{service}}
|
hostname: cheminformatics
|
||||||
container_name: {{service}}-ts
|
container_name: cheminformatics-ts
|
||||||
environment:
|
environment:
|
||||||
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
|
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
|
||||||
- TS_STATE_DIR=/var/lib/tailscale
|
- TS_STATE_DIR=/var/lib/tailscale
|
||||||
@ -15,7 +15,41 @@ services:
|
|||||||
- net_admin
|
- net_admin
|
||||||
- sys_module
|
- sys_module
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
{{service-compose}}
|
cheminformatics-backend:
|
||||||
network_mode: service:{{service}}-ts
|
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:
|
depends_on:
|
||||||
- {{service}}-ts
|
- 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
|
Loading…
x
Reference in New Issue
Block a user