Skip to content

Instantly share code, notes, and snippets.

@azamara
Created April 24, 2018 14:30
Show Gist options
  • Save azamara/d345c0d70a9f6a97efc721957a3b257d to your computer and use it in GitHub Desktop.
Save azamara/d345c0d70a9f6a97efc721957a3b257d to your computer and use it in GitHub Desktop.
Rancher AWX docker-compose
version: '2'
services:
memcached:
image: memcached:alpine
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
awx-web:
image: ansible/awx_web:latest
hostname: awxweb
environment:
SECRET_KEY: aabbcc
DATABASE_USER: awx
DATABASE_PASSWORD: awxpass
DATABASE_NAME: awx
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'
stdin_open: true
tty: true
links:
- rabbitmq:rabbitmq
- postgres:postgres
- memcached:memcached
ports:
- 80:8052/tcp
user: root
labels:
io.rancher.container.pull_image: always
rabbitmq:
image: rabbitmq:3
environment:
RABBITMQ_DEFAULT_VHOST: awx
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
awx-task:
image: ansible/awx_task:latest
hostname: awx
environment:
SECRET_KEY: aabbcc
DATABASE_USER: awx
DATABASE_PASSWORD: awxpass
DATABASE_NAME: awx
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'
stdin_open: true
tty: true
links:
- rabbitmq:rabbitmq
- postgres:postgres
- awx-web:awxweb
- memcached:memcached
user: root
labels:
io.rancher.container.pull_image: always
postgres:
image: postgres:9.6
environment:
POSTGRES_USER: awx
POSTGRES_PASSWORD: awxpass
POSTGRES_DB: awx
stdin_open: true
tty: true
labels:
io.rancher.container.pull_image: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment