init
This commit is contained in:
56
neuralink/docker-compose.yml
Executable file
56
neuralink/docker-compose.yml
Executable file
@@ -0,0 +1,56 @@
|
||||
services:
|
||||
chip_manager_service:
|
||||
build: build/service/
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- path: ./.env
|
||||
ports:
|
||||
- "1224:1224"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2'
|
||||
memory: 2G
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10k"
|
||||
max-file: "3"
|
||||
networks:
|
||||
- neuralink
|
||||
db:
|
||||
build: build/database/
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- path: ./.env
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2'
|
||||
memory: 2G
|
||||
healthcheck:
|
||||
test: ["CMD", "psql", "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
networks:
|
||||
- neuralink
|
||||
cleaner:
|
||||
build: build/cleaner/
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- path: ./.env
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2'
|
||||
memory: 2G
|
||||
networks:
|
||||
- neuralink
|
||||
|
||||
networks:
|
||||
neuralink:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user