mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
b29a9cd86e
Without this, CURRENT_UID isnt actually passed in from the host, and wipes out /etc/passwd even when we’re actually running as root. I tested this as a non-root user on Linux, and on Docker for Mac
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
version: '2'
|
|
services:
|
|
# Primary AWX Development Container
|
|
awx:
|
|
user: ${CURRENT_UID}
|
|
image: ${DEV_DOCKER_TAG_BASE}/awx_devel:${TAG}
|
|
container_name: tools_awx_1
|
|
hostname: awx
|
|
environment:
|
|
CURRENT_UID:
|
|
RABBITMQ_HOST: rabbitmq
|
|
RABBITMQ_USER: guest
|
|
RABBITMQ_PASS: guest
|
|
RABBITMQ_VHOST: /
|
|
SDB_HOST: 0.0.0.0
|
|
AWX_GROUP_QUEUES: tower
|
|
ports:
|
|
- "8888:8888"
|
|
- "8080:8080"
|
|
- "8013:8013"
|
|
- "8043:8043"
|
|
- "6899-6999:6899-6999" # default port range for sdb-listen
|
|
links:
|
|
- postgres
|
|
- memcached
|
|
- rabbitmq
|
|
# - sync
|
|
# volumes_from:
|
|
# - sync
|
|
volumes:
|
|
- "../:/awx_devel"
|
|
privileged: true
|
|
# A useful container that simply passes through log messages to the console
|
|
# helpful for testing awx/tower logging
|
|
# logstash:
|
|
# build:
|
|
# context: ./docker-compose
|
|
# dockerfile: Dockerfile-logstash
|
|
# Postgres Database Container
|
|
postgres:
|
|
image: postgres:9.6
|
|
container_name: tools_postgres_1
|
|
ports:
|
|
- "5432:5432"
|
|
memcached:
|
|
image: memcached:alpine
|
|
container_name: tools_memcached_1
|
|
ports:
|
|
- "11211:11211"
|
|
rabbitmq:
|
|
image: rabbitmq:3-management
|
|
container_name: tools_rabbitmq_1
|
|
ports:
|
|
- "15672:15672"
|