version: '3.8' services: api: build: context: . dockerfile: Dockerfile target: production image: api-controle-saida-loja:latest container_name: api-controle-saida-loja restart: unless-stopped ports: - "3001:3001" environment: NODE_ENV: production PORT: 3001 ORACLE_USER: ${ORACLE_USER} ORACLE_PASSWORD: ${ORACLE_PASSWORD} ORACLE_CONNECTION_STRING: ${ORACLE_CONNECTION_STRING} ORACLE_LIB_DIR: /opt/oracle/instantclient JWT_SECRET: ${JWT_SECRET} env_file: - .env healthcheck: test: [ "CMD", "node", "-e", "require('http').get('http://localhost:3001/', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" ] interval: 30s timeout: 10s retries: 3 start_period: 40s deploy: resources: limits: cpus: '1' memory: 512M reservations: cpus: '0.5' memory: 256M logging: driver: "json-file" options: max-size: "10m" max-file: "3" networks: - api-network networks: api-network: driver: bridge