forked from openedx/enterprise-access
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (81 loc) · 2.45 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "2.1"
services:
mysql80:
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
container_name: enterprise_access.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_access_mysql80:/var/lib/mysql
memcache:
image: memcached:1.4.24
container_name: enterprise_access.memcache
networks:
- devstack_default
command: memcached -vv
app:
# Uncomment this line to use the official enterprise_access base image
image: openedx/enterprise-access:latest-devstack
container_name: enterprise_access.app
volumes:
- .:/edx/app/enterprise-access/
- ../src:/edx/src
command: bash -c 'while true; do python /edx/app/enterprise-access/manage.py runserver 0.0.0.0:18270; sleep 2; done'
ports:
- "18270:18270" # TODO: change this to your port
depends_on:
- mysql80
- memcache
- worker
networks:
- devstack_default
stdin_open: true
tty: true
environment:
CELERY_ALWAYS_EAGER: 'false'
CELERY_BROKER_TRANSPORT: redis
CELERY_BROKER_HOSTNAME: edx.devstack.redis:6379
CELERY_BROKER_VHOST: 0
CELERY_BROKER_PASSWORD: password
DJANGO_SETTINGS_MODULE: enterprise_access.settings.devstack
DJANGO_WATCHMAN_TIMEOUT: 30
ENABLE_DJANGO_TOOLBAR: 1
worker:
image: openedx/enterprise-access.worker:latest-devstack
build:
context: .
dockerfile: Dockerfile
command: bash -c 'cd /edx/app/enterprise-access/ && celery -A enterprise_access worker -l DEBUG'
container_name: enterprise_access.worker
depends_on:
- mysql80
- memcache
environment:
CELERY_ALWAYS_EAGER: 'false'
CELERY_BROKER_TRANSPORT: redis
CELERY_BROKER_HOSTNAME: edx.devstack.redis:6379
CELERY_BROKER_VHOST: 0
CELERY_BROKER_PASSWORD: password
DJANGO_SETTINGS_MODULE: enterprise_access.settings.devstack
COLUMNS: 80
hostname: worker.enterprise_access
networks:
- devstack_default
ports:
- "18271:18271"
restart: always
stdin_open: true
tty: true
volumes:
- .:/edx/app/enterprise-access/
networks:
devstack_default:
external: true
volumes:
enterprise_access_mysql80: