-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
47 lines (43 loc) · 1.13 KB
/
docker-compose.yml
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
42
43
44
45
46
47
version: "2.1"
services:
mysql:
image: mysql:5.7
container_name: designer.mysql
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "designer"
networks:
- devstack_default
volumes:
- designer_mysql:/var/lib/mysql
# Uncomment these lines to access the database from localhost
# ports:
# - "3307:3306"
designer:
# Uncomment this line to use the official designer base image
# image: edxops/designer:devstack
build:
context: .
dockerfile: Dockerfile
container_name: designer.app
volumes:
- .:/edx/app/designer
command: bash -c 'while true; do python /edx/app/designer/manage.py runserver 0.0.0.0:18808; sleep 2; done'
ports:
- "18808:18808"
depends_on:
- mysql
networks:
- devstack_default
# Allows attachment to this container using 'docker attach <containerID>'.
stdin_open: true
tty: true
environment:
DJANGO_SETTINGS_MODULE: designer.settings.devstack
ENABLE_DJANGO_TOOLBAR: 1
networks:
devstack_default:
external: true
volumes:
designer_mysql: