Commit a5c63858 authored by WojciechowskiPiotr's avatar WojciechowskiPiotr
Browse files

Add docker-compose.v3.yml file

parent ef88a352
version: '3'
services:
web:
image: ansible/awx_web:latest
depends_on:
- rabbitmq
- memcached
- postgres
ports:
- "8052: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: awx_postgres_1
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
volumes:
- awx_web:/var/lib/nginx:rw
networks:
- default
- awx
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
volumes:
- awx_task:/var/lib/nginx:rw
networks:
- default
- awx
rabbitmq:
image: ansible/awx_rabbitmq:3.7.4
restart: unless-stopped
environment:
RABBITMQ_DEFAULT_VHOST: awx
RABBITMQ_ERLANG_COOKIE: cookiemonster
volumes:
- awx_rabbitmq:/var/lib/rabbitmq:rw
networks:
- awx
memcached:
image: memcached:alpine
restart: unless-stopped
networks:
- awx
postgres:
image: postgres:9.6
restart: unless-stopped
volumes:
- awx_postgresql:/var/lib/postgresql/data:Z
ports:
- "15432:5432"
environment:
POSTGRES_USER: awx
POSTGRES_PASSWORD: awxpass
POSTGRES_DB: awx
PGDATA: /var/lib/postgresql/data/pgdata
networks:
- awx
networks:
default:
external:
name: Lab
awx:
external: no
volumes:
awx_postgresql:
driver: local
awx_rabbitmq:
driver: local
awx_web:
driver: local
awx_task:
driver: local
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment