-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
43 lines (39 loc) · 1.01 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
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:
image: edxops/designer:latest
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: