forked from BU-ISCIII/LocalEGA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.distribution.yml
More file actions
45 lines (43 loc) · 1.58 KB
/
Copy pathdocker-compose.distribution.yml
File metadata and controls
45 lines (43 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
distribution:
build:
context: ../..
dockerfile: deploy/docker/distribution/Dockerfile
image: localega/distribution:latest
container_name: distribution
ports:
- "${DISTRIBUTION_PORT:-2224}:2223"
networks:
- vault
environment:
FUSE_DB_DSN: postgresql://distribution:${DISTRIBUTION_DB_PASSWORD:?set DISTRIBUTION_DB_PASSWORD in deploy/docker/.env}@vault-db:5432/ega?application_name=EGADistFS
EGA_SSH_BANNER: ${EGA_SSH_BANNER:-Affiliated EGA ciber-isciii}
volumes:
- ${LOCALEGA_DATA_BASE:-/impact_data/lega_data/lega}/vault:/opt/LocalEGA/vault:ro
- ${LOCALEGA_BIND_BASE:-/srv/containers/bind/localega}/etc:/opt/LocalEGA/etc
- ${LOCALEGA_RUNTIME_BASE:-/srv/containers/bind/localega/runtime}/homes:/opt/LocalEGA/homes
devices:
- /dev/fuse:/dev/fuse
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
restart: unless-stopped
depends_on:
- nss-sync
nss-sync:
image: ubuntu:22.04
container_name: nss-sync
environment:
SYNC_INTERVAL_SECONDS: ${SYNC_INTERVAL_SECONDS:-60}
volumes:
- ${LOCALEGA_BIND_BASE:-/srv/containers/bind/localega}/etc:/opt/LocalEGA/etc
- ${LOCALEGA_RUNTIME_BASE:-/srv/containers/bind/localega/runtime}/homes:/opt/LocalEGA/homes
- ./distribution/nss-sync.sh:/usr/local/bin/nss-sync.sh:ro
- ${LOCALEGA_LOG_DIR:-/var/log/local/localega/app}/nss-sync:/var/log/local/localega/app
networks:
- vault
entrypoint: ["/bin/bash", "/usr/local/bin/nss-sync.sh"]
restart: unless-stopped
networks:
vault: