summaryrefslogtreecommitdiffstats
path: root/Services/mariadb/docker-compose.yml
blob: a42f57520ee8a616fb4ae9cbe7241e6b7cd43803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
server:
  build: ./
  container_name: "mariadb-server"
  mem_limit: 1g
  memswap_limit: 1g
  cpu_shares: 8
  restart: "on-failure:2"
  ports:
    - "3306:3306"
  environment:
    CONTAINER_TYPE: "service"
    CONTAINER_SERVICE: "mariadb"
    CONTAINER_INSTANCE: "sx-mariadb"
    MYSQL_ROOT_PASSWORD: "secretdemerde"
    MYSQL_USER: "user-test"
    MYSQL_PASSWORD: "pwd-test"
    MYSQL_DATABASE: "db_test"
  volumes:
    - "/tmp/container/logs/mariadb:/data/logs/mariadb"
    - "/tmp/container/mariadb:/data/mariadb"