Skip to content

Instantly share code, notes, and snippets.

@ahndmal
Last active December 1, 2021 10:52
Show Gist options
  • Select an option

  • Save ahndmal/894e37570a03a80f604b97c961fc103f to your computer and use it in GitHub Desktop.

Select an option

Save ahndmal/894e37570a03a80f604b97c961fc103f to your computer and use it in GitHub Desktop.
3 spring boot apps as microservices
version: '3'
services:
micro1-db:
image: sb-micro-1:0.0.1
container_name: sb-micro-1
environment:
- DB_URL=
- R2_USERNAME=
- R2_PASSWORD=
networks:
- overlay
volumes:
- ./data/confluence:/opt/atlassian/confluence/data
ports:
- 8090:8090
restart: always
micro2:
image: sb-micro-2:0.0.1
container_name: sb-micro-2
environment:
- DB_URL=
- R2_USERNAME=
- R2_PASSWORD=
ports:
- 8091:8091
restart: always
volumes:
- db-data:/var/lib/mysql/data
networks:
- overlay
volumes:
db-data:
networks:
overlay:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment