Skip to content

Commit

Permalink
feat: add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas.dang committed Mar 24, 2024
1 parent 772675f commit 166dbe8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docke-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: "3.9"
services:
# mysql database
mysql-db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: shopping_cart
ports:
- "3306:3306"
# spring boot app
spring-boot-app:
build: resource-server
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MAILGUN_DOMAIN_NAME: ${MAILGUN_DOMAIN_NAME}
MAILGUN_API_KEY: ${MAILGUN_API_KEY}
TWILIO_ACCOUNT_SID: ${TWILIO_ACCOUNT_SID}
TWILIO_AUTH_TOKEN: ${TWILIO_AUTH_TOKEN}
TWILIO_SERVICE_SID: ${TWILIO_SERVICE_SID}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
ports:
- "8080:8080"
depends_on:
- mysql-db

0 comments on commit 166dbe8

Please sign in to comment.