summaryrefslogtreecommitdiff
path: root/docker/docker-compose.yml
blob: 7ee3860aa831e9f8d9770051b57b3ba615b21b5f (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
31
32
33
34
35
36
37
38
39
40
41
version: '2'
services:
  yaksh-django:
    build:
      context: .
      dockerfile: Dockerfile_django
    image: yaksh.django
    container_name: yaksh_django
    volumes:
      - ../.:/Sites/online_test
    depends_on:
      - yaksh-db
      - yaksh-codeserver
    links:
      - yaksh-db
      - yaksh-codeserver
    ports:
      - 8000:80
    restart: always


  yaksh-codeserver:
    build:
      context: .
      dockerfile: Dockerfile_codeserver
    image: yaksh.codeserver
    container_name: yaksh_codeserver
    volumes:
      - ..:/Sites/online_test
    restart: always 


  yaksh-db:
    image: mariadb:10.2
    container_name: yaksh_db
    volumes:
      - ./mysql:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: yaksh
    restart: always