-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
153 lines (144 loc) · 3.52 KB
/
docker-compose.yml
File metadata and controls
153 lines (144 loc) · 3.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
services:
nginx:
image: dj_nginx
container_name: dj_nginx
hostname: dj_nginx
build:
context: './images'
dockerfile: 'nginx/Dockerfile'
ports:
- "81:80"
volumes:
- ./images/nginx/conf.d:/etc/nginx/conf.d
- ${WORKSPACE_PATH:-..}:/var/www/html
depends_on:
- php
php:
image: dj_php
container_name: dj_php
hostname: dj_php
build:
context: './images'
dockerfile: 'php/Dockerfile'
environment:
- GITHUB_TOKEN
extra_hosts:
- "zeronet-dashboard.zeronet-dashboard.test:host-gateway"
volumes:
- ~/.ssh:/root/.ssh:ro
- ${WORKSPACE_PATH:-..}:/var/www/html
depends_on:
- mysql
- memcached
- rabbitmq
- redis
- postgres
mysql:
image: dj_mysql
build:
context: './images'
dockerfile: 'mysql/Dockerfile'
container_name: dj_mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_ROOT_HOST: "%"
MYSQL_USER: dev
MYSQL_PASSWORD: password
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./images/mysql/conf.d/:/etc/mysql/conf.d/
- ./images/mysql/dumps/:/docker-entrypoint-initdb.d/
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-ppassword" ]
interval: 5s
timeout: 3s
retries: 30
memcached:
image: dj_memcached
container_name: dj_memcached
hostname: dj_memcached
build:
context: './images'
dockerfile: 'memcached/Dockerfile'
ports:
- "11211:11211"
rabbitmq:
image: dj_rabbitmq
container_name: dj_rabbitmq
hostname: dj_rabbitmq
build:
context: './images'
dockerfile: 'rabbitmq/Dockerfile'
ports:
- "5672:5672" # AMQP connection port
- "15672:15672" # Admin port
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
- ./images/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins
- ./images/rabbitmq/rabbitmq_delayed_message_exchange-3.12.0.ez:/opt/rabbitmq/plugins/rabbitmq_delayed_message_exchange-0.0.1.ez
redis:
image: dj_redis
container_name: dj_redis
hostname: dj_redis
build:
context: './images'
dockerfile: 'redis/Dockerfile'
ports:
- "6379:6379"
postgres:
image: dj_postgres
container_name: dj_postgres
hostname: dj_postgres
build:
context: './images'
dockerfile: 'postgres/Dockerfile'
environment:
POSTGRES_DB: app
POSTGRES_USER: app
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./images/postgres/dumps/:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD", "pg_isready", "-d", "app", "-U", "app"]
interval: 5s
timeout: 3s
retries: 30
phpmyadmin:
image: dj_phpmyadmin
container_name: dj_phpmyadmin
hostname: dj_phpmyadmin
build:
context: './images'
dockerfile: 'phpmyadmin/Dockerfile'
environment:
PMA_HOST: dj_mysql
PMA_USER: root
PMA_PASSWORD: password
ports:
- "8080:80"
depends_on:
- mysql
pgadmin:
image: dj_pgadmin
container_name: dj_pgadmin
hostname: dj_pgadmin
build:
context: './images'
dockerfile: 'pgadmin/Dockerfile'
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- postgres
volumes:
mysql_data: {}
postgres_data: {}