-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
54 lines (49 loc) · 1.49 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
48
49
50
51
52
53
54
services:
mysql80:
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
container_name: enterprise-subsidy.mysql80
environment:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
# Oracle-packaged version includes a `linux/arm64/v8` version, needed for
# machines with Apple Silicon CPUs (Mac M1, M2)
image: mysql:8.0.33-oracle
networks:
- devstack_default
volumes:
- enterprise_subsidy_mysql80:/var/lib/mysql
memcache:
image: memcached:1.6.6
container_name: enterprise-subsidy.memcache
networks:
- devstack_default
command: memcached -vv
app:
# Uncomment this line to use the official enterprise-subsidy base image
# image: openedx/enterprise-subsidy
image: openedx/enterprise-subsidy:latest-devstack
build:
context: .
dockerfile: Dockerfile
container_name: enterprise-subsidy.app
volumes:
- .:/edx/app/enterprise-subsidy
- ../src:/edx/src
command: bash -c 'while true; do python /edx/app/enterprise-subsidy/manage.py runserver 0.0.0.0:18280; sleep 2; done'
environment:
DJANGO_SETTINGS_MODULE: enterprise_subsidy.settings.devstack
ENABLE_DJANGO_TOOLBAR: 1
ports:
- "18280:18280" # TODO: change this to your port
networks:
- devstack_default
stdin_open: true
tty: true
depends_on:
- mysql80
- memcache
networks:
devstack_default:
external: true
volumes:
enterprise_subsidy_mysql80: