|
| 1 | +# AWX default user: admin password: 123456 port:80 |
| 2 | +# postgres user: awx password: 123456 |
| 3 | + |
| 4 | +version: "3.8" |
| 5 | +services: |
| 6 | + web: |
| 7 | + image: ${W9_REPO}:${W9_VERSION} |
| 8 | + container_name: ${W9_ID} |
| 9 | + depends_on: |
| 10 | + - redis |
| 11 | + - rsyslog |
| 12 | + hostname: awxweb |
| 13 | + user: root |
| 14 | + restart: unless-stopped |
| 15 | + env_file: .env |
| 16 | + command: /usr/bin/launch_awx_web.sh |
| 17 | + volumes: |
| 18 | + - projects:/var/lib/awx/projects/ |
| 19 | + - rsyslog-socket:/var/run/awx-rsyslog/ |
| 20 | + - awx-receptor:/var/run/awx-receptor/ |
| 21 | + - "./src/config/SECRET_KEY:/etc/tower/SECRET_KEY" |
| 22 | + - "./src/config/supervisord_web.conf:/etc/supervisord_web.conf" |
| 23 | + - "./src/config/settings.py:/etc/tower/settings.py" |
| 24 | + - "./src/config/local_settings.py:/etc/tower/local_settings.py" |
| 25 | + - "./src/config/websocket_secret.py:/etc/tower/websocket_secret.py" |
| 26 | + - "./src/config/nginx.conf:/etc/nginx/nginx.conf" |
| 27 | + - "./src/config/credentials.py:/etc/tower/conf.d/credentials.py" |
| 28 | + - "./src/config/receptor/receptor-awx.conf:/etc/receptor/receptor.conf" |
| 29 | + - "./src/config/receptor/receptor-awx-1.conf.lock:/etc/receptor/receptor.conf.lock" |
| 30 | + - redis-socket:/var/run/redis/ |
| 31 | + - "/sys/fs/cgroup:/sys/fs/cgroup" |
| 32 | + - shared:/var/lib/shared |
| 33 | + privileged: true |
| 34 | + tty: true |
| 35 | + environment: |
| 36 | + http_proxy: |
| 37 | + https_proxy: |
| 38 | + no_proxy: |
| 39 | + ports: |
| 40 | + - "${W9_HTTP_PORT_SET}:${W9_HTTP_PORT}" |
| 41 | + |
| 42 | + awx: |
| 43 | + # image: quay.io/ansible/awx:${W9_VERSION} |
| 44 | + build: |
| 45 | + context: ./ |
| 46 | + dockerfile: Dockerfile |
| 47 | + container_name: ${W9_ID}-task |
| 48 | + depends_on: |
| 49 | + - redis |
| 50 | + - web |
| 51 | + - postgres |
| 52 | + - rsyslog |
| 53 | + command: sh /usr/bin/launch_awx_task.sh |
| 54 | + hostname: awx_1 |
| 55 | + user: root |
| 56 | + restart: unless-stopped |
| 57 | + env_file: .env |
| 58 | + volumes: |
| 59 | + - "./src/config/supervisord_task.conf:/etc/supervisord_task.conf" |
| 60 | + - projects:/var/lib/awx/projects/ |
| 61 | + - "./src/config/launch_awx_task.sh:/usr/bin/launch_awx_task.sh" |
| 62 | + - rsyslog-socket:/var/run/awx-rsyslog/ |
| 63 | + - awx-receptor:/var/run/awx-receptor/ |
| 64 | + - "./src/config/SECRET_KEY:/etc/tower/SECRET_KEY" |
| 65 | + - "./src/config/settings.py:/etc/tower/settings.py" |
| 66 | + - "./src/config/local_settings.py:/etc/tower/local_settings.py" |
| 67 | + - "./src/config/websocket_secret.py:/etc/tower/websocket_secret.py" |
| 68 | + - "./src/config/nginx.conf:/etc/nginx/nginx.conf" |
| 69 | + - "./src/config/credentials.py:/etc/tower/conf.d/credentials.py" |
| 70 | + - "./src/config/receptor/receptor-awx.conf:/etc/receptor/receptor.conf" |
| 71 | + - "./src/config/receptor/receptor-awx-1.conf.lock:/etc/receptor/receptor.conf.lock" |
| 72 | + - redis-socket:/var/run/redis/ |
| 73 | + - "/sys/fs/cgroup:/sys/fs/cgroup" |
| 74 | + - shared:/var/lib/shared |
| 75 | + privileged: true |
| 76 | + tty: true |
| 77 | + environment: |
| 78 | + http_proxy: |
| 79 | + https_proxy: |
| 80 | + no_proxy: |
| 81 | + |
| 82 | + rsyslog: |
| 83 | + image: quay.io/ansible/awx:${W9_VERSION} |
| 84 | + container_name: awx_rsyslog |
| 85 | + command: /usr/bin/launch_awx_rsyslog.sh |
| 86 | + hostname: awx_rsyslog |
| 87 | + user: root |
| 88 | + restart: unless-stopped |
| 89 | + env_file: .env |
| 90 | + volumes: |
| 91 | + - projects:/var/lib/awx/projects/ |
| 92 | + - "./src/config/launch_awx_task.sh:/usr/bin/launch_awx_task.sh" |
| 93 | + - rsyslog-socket:/var/run/awx-rsyslog/ |
| 94 | + - awx-receptor:/var/run/awx-receptor/ |
| 95 | + - "./src/config/SECRET_KEY:/etc/tower/SECRET_KEY" |
| 96 | + - "./src/config/settings.py:/etc/tower/settings.py" |
| 97 | + - "./src/config/local_settings.py:/etc/tower/local_settings.py" |
| 98 | + - "./src/config/websocket_secret.py:/etc/tower/websocket_secret.py" |
| 99 | + - "./src/config/nginx.conf:/etc/nginx/nginx.conf" |
| 100 | + - "./src/config/credentials.py:/etc/tower/conf.d/credentials.py" |
| 101 | + - "./src/config/receptor/receptor-awx.conf:/etc/receptor/receptor.conf" |
| 102 | + - "./src/config/receptor/receptor-awx-1.conf.lock:/etc/receptor/receptor.conf.lock" |
| 103 | + - redis-socket:/var/run/redis/ |
| 104 | + - "/sys/fs/cgroup:/sys/fs/cgroup" |
| 105 | + privileged: true |
| 106 | + tty: true |
| 107 | + environment: |
| 108 | + http_proxy: |
| 109 | + https_proxy: |
| 110 | + no_proxy: |
| 111 | + |
| 112 | + redis: |
| 113 | + image: redis |
| 114 | + container_name: awx_redis |
| 115 | + restart: unless-stopped |
| 116 | + env_file: .env |
| 117 | + environment: |
| 118 | + http_proxy: |
| 119 | + https_proxy: |
| 120 | + no_proxy: |
| 121 | + entrypoint: ["redis-server"] |
| 122 | + command: ["/usr/local/etc/redis/redis.conf"] |
| 123 | + volumes: |
| 124 | + - redis-socket:/var/run/redis/:rw |
| 125 | + - "./src/config/redis.conf:/usr/local/etc/redis/redis.conf" |
| 126 | + |
| 127 | + postgres: |
| 128 | + image: postgres:12 |
| 129 | + container_name: awx_postgresql |
| 130 | + restart: unless-stopped |
| 131 | + env_file: .env |
| 132 | + volumes: |
| 133 | + - postgres_new-data:/var/lib/postgresql/data/pgdata/ |
| 134 | + environment: |
| 135 | + POSTGRES_PASSWORD: ${PASSWORD} |
| 136 | + POSTGRES_DB: ${W9_ID} |
| 137 | + POSTGRES_USER: ${W9_ID} |
| 138 | + http_proxy: |
| 139 | + https_proxy: |
| 140 | + no_proxy: |
| 141 | + |
| 142 | +volumes: |
| 143 | + supervisor-socket: |
| 144 | + rsyslog-socket: |
| 145 | + redis-socket: |
| 146 | + postgres_new-data: |
| 147 | + awx-receptor: |
| 148 | + projects: |
| 149 | + shared: |
| 150 | + |
| 151 | +networks: |
| 152 | + default: |
| 153 | + name: ${W9_NETWORK} |
| 154 | + external: true |
0 commit comments