summaryrefslogtreecommitdiff
path: root/pse-server/docker-compose.yml
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-06-19 00:14:49 +0200
committerOrangerot <purple@orangerot.dev>2024-06-27 12:11:14 +0200
commit5b8851b6c268d0e93c158908fbfae9f8473db5ff (patch)
tree7010eb85d86fa2da06ea4ffbcdb01a685d502ae8 /pse-server/docker-compose.yml
Initial commitHEADmain
Diffstat (limited to 'pse-server/docker-compose.yml')
-rw-r--r--pse-server/docker-compose.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/pse-server/docker-compose.yml b/pse-server/docker-compose.yml
new file mode 100644
index 0000000..35ad877
--- /dev/null
+++ b/pse-server/docker-compose.yml
@@ -0,0 +1,50 @@
+version: '3.9'
+
+services:
+
+ maria_db:
+ image: "mariadb:10.4.28"
+ restart: always
+ networks:
+ - backend
+ environment:
+ MARIADB_DATABASE: demo
+ MARIADB_USER: pse
+ MARIADB_PASSWORD: PSEsq1702!mdb
+ MARIADB_RANDOM_ROOT_PASSWORD: yes
+ volumes:
+ - database:/var/lib/mysql
+
+ pse-backend:
+ restart: always
+ hostname: pse-backend
+ network_mode: "bridge"
+ build:
+ context: .
+ dockerfile: Dockerfile
+ args:
+ SERVER_TIMEZONE: ${SERVER_TIMEZONE}
+ networks:
+ - backend
+ environment:
+ EMAIL_DASHBOARD_BASE_URL: http://${FRONTEND_DOMAIN}
+ EMAIL_VERIFICATION_URL: http://${BACKEND_DOMAIN}/api/2/auth/%s/verify.json
+ EMAIL_RESET_URL_PATH: /resetPassword
+ SPRING_MAIL_HOST: ${SPRING_MAIL_HOST}
+ SPRING_MAIL_PORT: ${SPRING_MAIL_PORT}
+ SPRING_MAIL_USERNAME: ${SPRING_MAIL_USERNAME}
+ SPRING_MAIL_PASSWORD: ${SPRING_MAIL_PASSWORD}
+ depends_on:
+ - maria_db
+ links:
+ - maria_db:maria_db
+ ports:
+ - 80:8080
+
+networks:
+ frontend:
+ backend:
+
+volumes:
+ database:
+