summaryrefslogtreecommitdiff
path: root/pse-server/docker-compose.yml
blob: 35ad87799960c7283d3d5a0fbaed606b8877b94c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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: