Skip to content

Commit

Permalink
ADM-733[backend] feat: change docker-compose.yml to deploy (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoDai authored Feb 1, 2024
1 parent 0715502 commit cfcb620
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ops/infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ services:
backend:
image: heartbeat_backend:latest
container_name: backend
ports:
- 4322:4322
expose:
- 4322
restart: always
deploy:
replicas: 1
networks:
- default
volumes:
- file_volume:/app/output
environment:
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE:-default}
- MOCK_SERVER_URL=${MOCK_SERVER_URL:-localhost:4323}
Expand Down Expand Up @@ -45,7 +49,8 @@ services:
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"

volumes:
file_volume:
networks:
default:
driver: bridge

0 comments on commit cfcb620

Please sign in to comment.