Update docker-compose file with memcached
This commit is contained in:
parent
c14a3f1b0d
commit
a703cce21f
1 changed files with 7 additions and 2 deletions
|
@ -15,6 +15,9 @@ services:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
init: true
|
init: true
|
||||||
tty: true
|
tty: true
|
||||||
|
depends_on:
|
||||||
|
- nginx
|
||||||
|
- memcached
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.19.2
|
image: nginx:1.19.2
|
||||||
ports:
|
ports:
|
||||||
|
@ -23,8 +26,10 @@ services:
|
||||||
- staticfiles:/app/static
|
- staticfiles:/app/static
|
||||||
- media:/app/media
|
- media:/app/media
|
||||||
- ./docker/nginx-dev.conf:/etc/nginx/conf.d/default.conf
|
- ./docker/nginx-dev.conf:/etc/nginx/conf.d/default.conf
|
||||||
depends_on:
|
memcached:
|
||||||
- django
|
image: memcached:1.6.9
|
||||||
|
restart: always
|
||||||
|
command: ["memcached", "-m", "128"]
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
staticfiles: {}
|
staticfiles: {}
|
||||||
|
|
Reference in a new issue