-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (36 loc) · 974 Bytes
/
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
version: "2.1"
services:
db:
image: mysql:8.0
container_name: sanctions.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:
- sanctions_mysql:/var/lib/mysql
memcache:
image: memcached:1.4.24
container_name: sanctions.memcache
app:
image: devstack
build: .
container_name: sanctions.app
volumes:
- .:/edx/app/sanctions/
command: bash -c 'while true; do python /edx/app/sanctions/manage.py runserver 0.0.0.0:18770; sleep 2; done'
environment:
DJANGO_SETTINGS_MODULE: sanctions.settings.devstack
ports:
- "18770:18770"
networks:
- devstack_default
stdin_open: true
tty: true
networks:
devstack_default:
external: true
volumes:
sanctions_mysql: