chore: import MCTF services
- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
This commit is contained in:
commit
13f936bee9
1222 files changed
+21280
No files matched your search
Executable
+110
@@ -0,0 +1,110 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14-alpine
|
||||
container_name: delamain_postgres
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: delamain
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./sql/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d delamain"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
networks:
|
||||
- delamain_network
|
||||
ports: []
|
||||
restart: unless-stopped
|
||||
|
||||
c-daemon:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: c.Dockerfile
|
||||
container_name: delamain_c_daemon
|
||||
environment:
|
||||
DB_HOST: postgres
|
||||
DB_PORT: "5432"
|
||||
DB_USER: delamain_ro
|
||||
DB_PASSWORD: delamain_ro
|
||||
DB_NAME: delamain
|
||||
volumes:
|
||||
- daemon_sock:/var/run/delamain
|
||||
networks:
|
||||
- delamain_network
|
||||
restart: unless-stopped
|
||||
|
||||
go-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: go.Dockerfile
|
||||
container_name: delamain_go_server
|
||||
environment:
|
||||
DB_HOST: postgres
|
||||
DB_PORT: "5432"
|
||||
DB_USER: postgres
|
||||
DB_PASSWORD: postgres
|
||||
DB_NAME: delamain
|
||||
C_SOCKET_PATH: /var/run/delamain/daemon.sock
|
||||
FRONTEND_DIR: /app/frontend
|
||||
volumes:
|
||||
- daemon_sock:/var/run/delamain
|
||||
- ./frontend:/app/frontend:ro
|
||||
ports: []
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
c-daemon:
|
||||
condition: service_started
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8080/api/health || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- delamain_network
|
||||
restart: unless-stopped
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: delamain_nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./frontend:/usr/share/nginx/html:ro
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
depends_on:
|
||||
- go-server
|
||||
networks:
|
||||
- delamain_network
|
||||
restart: unless-stopped
|
||||
|
||||
cleaner:
|
||||
image: postgres:14-alpine
|
||||
container_name: delamain_cleaner
|
||||
entrypoint: ["sh", "/usr/local/bin/cleaner.sh"]
|
||||
environment:
|
||||
PGPASSWORD: postgres
|
||||
PGHOST: postgres
|
||||
PGUSER: postgres
|
||||
PGDATABASE: delamain
|
||||
CLEAN_OLDER_THAN: "6 minutes"
|
||||
CLEAN_EVERY: "60"
|
||||
volumes:
|
||||
- ./cleaner.sh:/usr/local/bin/cleaner.sh:ro
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- delamain_network
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
daemon_sock:
|
||||
|
||||
networks:
|
||||
delamain_network:
|
||||
driver: bridge
|
||||
Reference in new issue
Block a user