-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (94 loc) · 2.52 KB
/
docker-compose.yml
File metadata and controls
102 lines (94 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# AWX default user: admin password: 123456 port:80
# postgres user: awx password: 123456
version: '3.8'
services:
web:
image: ansible/awx:latest
container_name: awx_web
depends_on:
- redis
hostname: awxweb
user: root
restart: unless-stopped
volumes:
- supervisor-socket:/var/run/supervisor
- rsyslog-socket:/var/run/awx-rsyslog/
- "./src/config/SECRET_KEY:/etc/tower/SECRET_KEY"
- "./src/config/environment.sh:/etc/tower/conf.d/environment.sh"
- "./src/config/nginx.conf:/etc/nginx/nginx.conf"
- "./src/config/credentials.py:/etc/tower/conf.d/credentials.py"
- redis-socket:/var/run/redis/
environment:
http_proxy:
https_proxy:
no_proxy:
task:
image: ansible/awx:latest
container_name: awx_task
depends_on:
- redis
- web
- postgres
command: /usr/bin/launch_awx_task.sh
hostname: awx
user: root
restart: unless-stopped
volumes:
- supervisor-socket:/var/run/supervisor
- rsyslog-socket:/var/run/awx-rsyslog/
- "./src/config/SECRET_KEY:/etc/tower/SECRET_KEY"
- "./src/config/environment.sh:/etc/tower/conf.d/environment.sh"
- "./src/config/nginx.conf:/etc/nginx/nginx.conf"
- "./src/config/credentials.py:/etc/tower/conf.d/credentials.py"
- redis-socket:/var/run/redis/
environment:
http_proxy:
https_proxy:
no_proxy:
SUPERVISOR_WEB_CONFIG_PATH: '/etc/supervisord.conf'
redis:
image: redis
container_name: awx_redis
restart: unless-stopped
environment:
http_proxy:
https_proxy:
no_proxy:
command: ["/usr/local/etc/redis/redis.conf"]
volumes:
- redis-socket:/var/run/redis/
- "./redis/redis.conf:/usr/local/etc/redis/redis.conf"
postgres:
image: postgres:12
container_name: awx_postgres
restart: unless-stopped
volumes:
- postgres_new-data:/var/lib/postgresql/data/pgdata/
environment:
POSTGRES_USER: awx
POSTGRES_PASSWORD: 123456
POSTGRES_DB: awx
PGDATA: /var/lib/postgresql/data/pgdata
http_proxy:
https_proxy:
no_proxy:
nginx:
image: nginx
container_name: awx_nginx
restart: unless-stopped
depends_on:
- redis
- postgres
volumes:
- "./src/config/default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "9003:80"
volumes:
supervisor-socket:
rsyslog-socket:
redis-socket:
postgres_new-data:
networks:
default:
name: ${APP_NETWORK}
external: true