diff --git a/backend/docker-compose.prod.yml b/backend/docker-compose.prod.yml new file mode 100644 index 000000000..cb5613e69 --- /dev/null +++ b/backend/docker-compose.prod.yml @@ -0,0 +1,33 @@ +version: '3.8' + +services: + application: + container_name: app_container + platform: linux/arm64 + depends_on: + - database-mysql + restart: always + image: ${DOCKER_REPO_NAME}/cruru:prod-latest + ports: + - ${SERVER_BINDING_PORT} + - ${MONITORING_BINDING_PORT} + environment: + DB_URL: ${DB_URL} + DB_USER: ${DB_USER} + DB_PASSWORD: ${DB_PASSWORD} + DDL_AUTO: ${DDL_AUTO} + SERVER_PORT: ${SERVER_PORT} + DOCKER_REPO_NAME: ${DOCKER_REPO_NAME} + MONITORING_PORT: ${MONITORING_PORT} + MONITORING_BASE_PATH: ${MONITORING_BASE_PATH} + APPLY_POST_BASE_URL: ${APPLY_POST_BASE_URL} + networks: + cruru_network: + ipv4_address: ${APP_IP_ADDRESS} + +networks: + cruru_network: + driver: bridge + ipam: + config: + - subnet: ${SUBNET}