summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: e6fbf975861895ee0e94708079bbdc86d8063fb5 (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
version: "3.0"
services:
  mongo:
    image: mongo
    volumes:
      - /var/lib/mongo
    ports:
    - 27017:27017
    command: --smallfiles

  mariadb:
    image: mariadb
    restart: always
    volumes:
      - /var/lib/mariadb
    environment:
      MYSQL_DATABASE: nbi
      MYSQL_ROOT_PASSWORD: toto
# APP  ***************************************************************************************
  nbi:
    build: .
    image: nbi
    ports:
    - 8080:8080
    depends_on:
    - mariadb
    - mongo
volumes:
  mariadb:
  mongo: