FEAT: re-integracion de tax-api y simulador F29

This commit is contained in:
Nachou-u
2026-09-09 14:45:50 -03:00
parent 522d5337f4
commit f0a4fa64e8
9 changed files with 324 additions and 52 deletions
+32
View File
@@ -0,0 +1,32 @@
import yaml
with open('docker-compose.yml', 'r') as f:
data = yaml.safe_load(f)
data['services']['tax-api'] = {
'build': {
'context': './tax_api',
'dockerfile': 'Dockerfile'
},
'restart': 'unless-stopped',
'networks': ['controlmc_proxy', 'internal'],
'mem_limit': '256m'
}
with open('docker-compose.yml', 'w') as f:
yaml.dump(data, f, sort_keys=False, default_flow_style=False)
with open('docker-compose.local.yml', 'r') as f:
data_local = yaml.safe_load(f)
data_local['services']['tax-api'] = {
'build': {
'context': './tax_api',
'dockerfile': 'Dockerfile'
},
'ports': ['8001:8000'],
'mem_limit': '256m'
}
with open('docker-compose.local.yml', 'w') as f:
yaml.dump(data_local, f, sort_keys=False, default_flow_style=False)