-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 1.16 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:
db:
# 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
container_name: flashcards.db
environment:
# See how these environment variables being used at https://github.com/mysql/mysql-docker/blob/mysql-server/8.0/docker-entrypoint.sh
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
networks:
- devstack_default
volumes:
- flashcards_mysql:/var/lib/mysql
memcache:
image: memcached:1.4.24
container_name: flashcards.memcache
app:
# Uncomment this line to use the official flashcards base image
image: openedx/flashcards
container_name: flashcards.app
volumes:
- .:/edx/app/flashcards/
command: bash -c 'while true; do python /edx/app/flashcards/manage.py runserver 0.0.0.0:8491; sleep 2; done'
environment:
DJANGO_SETTINGS_MODULE: flashcards.settings.devstack
ports:
- "8491:8491"
networks:
- devstack_default
stdin_open: true
tty: true
networks:
devstack_default:
external: true
volumes:
flashcards_mysql: