docker-compose.yml 1.04 KB
Newer Older
1 2 3
version: '2'
services:
  backend:
4 5 6
    build:
      context: .
      dockerfile: backend/Dockerfile
7 8 9 10
    ports:
      - "31215:31215"
    volumes:
      - "./cloogle.log:/usr/src/cloogle/cloogle.log"
11
      - "./cache:/usr/src/cloogle/cache"
12
    restart: always
Camil Staps's avatar
Camil Staps committed
13 14
    cap_add:
      - IPC_LOCK
15 16

  frontend:
17 18 19
    build:
      context: .
      dockerfile: frontend/Dockerfile
20 21 22
    depends_on:
      - backend
    ports:
23
      - "80:80"
24 25 26 27 28
    volumes:
      - "./frontend/:/var/www/html/"
    restart: always

  stats:
Camil Staps's avatar
Camil Staps committed
29
    build: stats
30 31 32
    depends_on:
      - frontend
      - db
33 34 35 36
    ports:
      - "31216:31216"
    volumes:
      - "./cloogle.log:/var/log/cloogle.log"
37 38 39
    restart: always

  db:
40
    image: mariadb:latest
41 42
    volumes:
      - "./db/:/docker-entrypoint-initdb.d/"
43
      - "./db/storage/:/var/lib/mysql/"
44
    environment:
Camil Staps's avatar
Camil Staps committed
45
        MYSQL_ROOT_PASSWORD: cloogle
46 47 48
        MYSQL_DATABASE: cloogledb
        MYSQL_USER: cloogle
        MYSQL_PASSWORD: cloogle
49
    restart: always
50 51 52 53 54 55

  gc:
    build: gc
    volumes:
      - "./cache:/var/cache"
    restart: always