docker-compose.yml 937 Bytes
Newer Older
Mart Lubbers's avatar
Mart Lubbers committed
1 2 3
version: '2'
services:
  backend:
4 5 6 7 8
    build: backend
    ports:
      - "31215:31215"
    volumes:
      - "./cloogle.log:/usr/src/cloogle/cloogle.log"
Mart Lubbers's avatar
Mart Lubbers committed
9
      - "./cache:/usr/src/cloogle/cache"
Mart Lubbers's avatar
Mart Lubbers committed
10 11 12
    restart: always

  frontend:
13
    build: frontend
Mart Lubbers's avatar
Mart Lubbers committed
14 15 16
    depends_on:
      - backend
    ports:
Camil Staps's avatar
Camil Staps committed
17
      - "80:80"
Mart Lubbers's avatar
Mart Lubbers committed
18 19 20 21 22
    volumes:
      - "./frontend/:/var/www/html/"
    restart: always

  stats:
Camil Staps's avatar
Camil Staps committed
23
    build: stats
Mart Lubbers's avatar
Mart Lubbers committed
24 25 26
    depends_on:
      - frontend
      - db
27 28 29 30
    ports:
      - "31216:31216"
    volumes:
      - "./cloogle.log:/var/log/cloogle.log"
Mart Lubbers's avatar
Mart Lubbers committed
31 32 33 34 35 36
    restart: always

  db:
    image: mysql:latest
    volumes:
      - "./db/:/docker-entrypoint-initdb.d/"
37
      - "./db/storage/:/var/lib/mysql/"
Mart Lubbers's avatar
Mart Lubbers committed
38
    environment:
Camil Staps's avatar
Camil Staps committed
39
        MYSQL_ROOT_PASSWORD: cloogle
Mart Lubbers's avatar
Mart Lubbers committed
40 41 42
        MYSQL_DATABASE: cloogledb
        MYSQL_USER: cloogle
        MYSQL_PASSWORD: cloogle
43
    restart: always
44 45 46 47 48 49

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