Add complete SACC v4 infrastructure project
- Terraform modules: VPC, EC2, RDS, S3, CloudFront, Route53, Lambda, IAM, Security Groups - Ansible playbooks for server configuration - Scripts: create-test-environment.sh, destroy-test-environment.sh, validate-environment.sh - Documentation: README, QUICKSTART, AGENTS - Jenkins pipeline for automated deployment - Jenkins pipeline for environment destruction
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
[Unit]
|
||||
Description=SACC4 {{ item.name }} Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=osiris
|
||||
Group=duat
|
||||
WorkingDirectory=/opt/sacc4/{{ item.name }}/current
|
||||
ExecStart=/usr/bin/java -jar /opt/sacc4/{{ item.name }}/current/{{ item.name }}.jar
|
||||
ExecStop=/bin/kill -15 $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StandardOutput=append:/var/log/sacc4/{{ item.name }}/{{ item.name }}-service.log
|
||||
StandardError=append:/var/log/sacc4/{{ item.name }}/{{ item.name }}-error.log
|
||||
|
||||
# Límites de recursos
|
||||
MemoryLimit=512M
|
||||
CPUQuota=50%
|
||||
|
||||
# Variables de entorno
|
||||
EnvironmentFile=/etc/sacc4/sacc4.env
|
||||
Environment="SERVER_PORT={{ item.port }}"
|
||||
Environment="LOG_PATH=/var/log/sacc4/{{ item.name }}/{{ item.name }}.log"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user