blob: 747cbda5469da33d2b3d2c35d07fa5c738c45f5f (
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:
- ../yaksh_data:/Sites/online_test/yaksh_data
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
|