~mna/hockeysim

hockeysim/docker-compose.yml -rw-r--r-- 555 bytes View raw
2086a9ccMartin Angers refactor season list to use league selection 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: '3.5'
services:
  db:
    image: mysql:8
    container_name: hockeysim_mysql
    ports:
      - "3307:3306"
    environment:
      - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/root_pwd
      - MYSQL_USER=${MYMIGRATE_USER}
      - MYSQL_PASSWORD_FILE=/run/secrets/user_pwd
      - MYSQL_DATABASE=${MYMIGRATE_DB}
    volumes:
      - ./db/config/mysql:/etc/mysql/conf.d:ro
      - ./db/data/mysql:/var/lib/mysql
    secrets:
      - root_pwd
      - user_pwd

secrets:
  root_pwd:
    file: .env_mysql_root_pwd
  user_pwd:
    file: .env_mysql_user_pwd