Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created February 26, 2018 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrisch/8da5bc0321e06d1c9ddcb05a3a85c33c to your computer and use it in GitHub Desktop.
Save jrisch/8da5bc0321e06d1c9ddcb05a3a85c33c to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
image: ansible/awx_web:latest
depends_on:
- rabbitmq
- memcached
- postgres
ports:
- "80:8052"
hostname: awxweb
user: root
restart: unless-stopped
environment:
http_proxy:
https_proxy:
no_proxy:
SECRET_KEY: awxsecret
DATABASE_NAME: awx
DATABASE_USER: awx
DATABASE_PASSWORD: awxpass
DATABASE_PORT: 5432
DATABASE_HOST: postgres
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_VHOST: awx
MEMCACHED_HOST: memcached
MEMCACHED_PORT: 11211
AWX_ADMIN_USER: admin
AWX_ADMIN_PASSWORD: password
task:
image: ansible/awx_task:latest
depends_on:
- rabbitmq
- memcached
- web
- postgres
hostname: awx
user: root
restart: unless-stopped
environment:
http_proxy:
https_proxy:
no_proxy:
SECRET_KEY: awxsecret
DATABASE_NAME: awx
DATABASE_USER: awx
DATABASE_PASSWORD: awxpass
DATABASE_HOST: postgres
DATABASE_PORT: 5432
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_VHOST: awx
MEMCACHED_HOST: memcached
MEMCACHED_PORT: 11211
AWX_ADMIN_USER: admin
AWX_ADMIN_PASSWORD: password
rabbitmq:
image: rabbitmq:3
restart: unless-stopped
environment:
RABBITMQ_DEFAULT_VHOST: awx
memcached:
image: memcached:alpine
restart: unless-stopped
postgres:
image: postgres:9.6
restart: unless-stopped
volumes:
- ./data/pg:/var/lib/postgresql/data:Z
environment:
POSTGRES_USER: awx
POSTGRES_PASSWORD: awxpass
POSTGRES_DB: awx
PGDATA: /var/lib/postgresql/data/pgdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment