mirror of
https://github.com/senaite/senaite.docker.git
synced 2024-11-14 20:24:32 +08:00
29 lines
560 B
YAML
29 lines
560 B
YAML
version: "3"
|
|
services:
|
|
senaite:
|
|
image: ramonski/senaite:latest
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
resources:
|
|
limits:
|
|
cpus: "1"
|
|
memory: 2G
|
|
ports:
|
|
- "8080:8080"
|
|
networks:
|
|
- webnet
|
|
visualizer:
|
|
image: dockersamples/visualizer:stable
|
|
ports:
|
|
- "8000:8080"
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
deploy:
|
|
placement:
|
|
constraints: [node.role == manager]
|
|
networks:
|
|
- webnet
|
|
networks:
|
|
webnet:
|