mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
fix memcached in dev env
* create memcached dir via git so that the current user owns it. Otherwise, docker will create the dir as root at runtime
This commit is contained in:
parent
735d44816b
commit
c4d704bee1
@ -109,6 +109,6 @@ services:
|
||||
user: ${CURRENT_UID}
|
||||
image: memcached:alpine
|
||||
container_name: tools_memcached_1
|
||||
command: ["-s", "/var/run/memcached/memcached.sock", "-a", "0666"]
|
||||
command: ["memcached", "-s", "/var/run/memcached/memcached.sock", "-a", "0666"]
|
||||
volumes:
|
||||
- "./memcached/:/var/run/memcached"
|
||||
|
||||
@ -54,7 +54,7 @@ services:
|
||||
user: ${CURRENT_UID}
|
||||
image: memcached:alpine
|
||||
container_name: tools_memcached_1
|
||||
command: ["-s", "/var/run/memcached/memcached.sock", "-a", "0666"]
|
||||
command: ["memcached", "-s", "/var/run/memcached/memcached.sock", "-a", "0666"]
|
||||
volumes:
|
||||
- "./memcached/:/var/run/memcached"
|
||||
redis:
|
||||
|
||||
1
tools/memcached/.dir_placeholder
Normal file
1
tools/memcached/.dir_placeholder
Normal file
@ -0,0 +1 @@
|
||||
This dir must pre-exist and be owned by the user you are launching awx dev env as. If the dir does not exist before launching the awx dev environment then docker will create the dir and it will be owned by root. Since we start our awx dev environment with user: ${CURRENT_UID} the memcached container will be unable to create a socket file in a directory owned by root.
|
||||
Loading…
x
Reference in New Issue
Block a user