48 lines
998 B
YAML
48 lines
998 B
YAML
services:
|
|
sova-server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
shm_size: 512m
|
|
container_name: sova-server
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
command: ["-i", "0.0.0.0", "-p", "8080", "--password", "${SOVA_PASSWORD}"]
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
cpus: '0.5'
|
|
reservations:
|
|
memory: 128M
|
|
cpus: '0.1'
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
sova-web:
|
|
build:
|
|
context: ./web
|
|
container_name: sova-web
|
|
restart: unless-stopped
|
|
environment:
|
|
- SOVA_HOST=sova-server
|
|
- SOVA_PORT=8080
|
|
- SOVA_PASSWORD=${SOVA_PASSWORD}
|
|
depends_on:
|
|
- sova-server
|
|
ports:
|
|
- "3000:3000"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 128M
|
|
cpus: '0.25'
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|