-
Notifications
You must be signed in to change notification settings - Fork 190
/
docker-compose.yml
137 lines (124 loc) · 3.11 KB
/
docker-compose.yml
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
version: '3.3'
services:
node:
build:
context: ./node
args:
- NODE_VERSION=latest
- PROJECT_PATH=/opt/app/
- NODE_ENV=production
- YARN=false
volumes:
- ../:/opt/app
entrypoint: run-nodock "node index.js"
tty: true
mysql:
build:
context: ./mysql
args:
- MYSQL_DATABASE=default_database
- MYSQL_USER=default_user
- MYSQL_PASSWORD=secret
- MYSQL_ROOT_PASSWORD=root
volumes:
- ./data/mysql/:/var/lib/mysql
expose:
- "3306"
postgresql:
build:
context: ./postgresql
args:
- POSTGRES_USER=default_user
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=default_db
volumes:
- ./data/postgresql/:/var/lib/postgresql
expose:
- "5432"
mongo:
build: ./mongo
expose:
- "27017"
volumes:
- ./data/mongo/:/var/lib/mongodb
nginx:
build:
context: ./nginx
args:
- WEB_REVERSE_PROXY_PORT=8000
- WEB_SSL=false
- SELF_SIGNED=false
- NO_DEFAULT=false
volumes:
- ./data/logs/nginx/:/var/log/nginx
- ./certbot/certs/:/var/certs
ports:
- "80:80"
- "443:443"
tty: true
apache:
build:
context: ./apache
args:
- WEB_REVERSE_PROXY_PORT=8000
- WEB_SSL=false
- SELF_SIGNED=false
- NO_DEFAULT=false
volumes:
- ./data/logs/apache/:/usr/local/apache2/logs
- ./certbot/certs/:/var/certs
ports:
- "80:80"
- "443:443"
tty: true
certbot:
build:
context: ./certbot
links:
- apache
- nginx
volumes:
- ./certbot/letsencrypt/:/var/www/letsencrypt
- ./certbot/certs/:/var/certs
rabbitmq:
build:
context: ./rabbitmq
args:
- MANAGEMENT=false
- FEDERATION=false
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
expose:
- "5672"
workspace:
build:
context: ./workspace
args:
- NODE_VERSION=latest
- TZ=UTC
links:
- nginx
volumes:
- ../:/opt/app
memcached:
build:
context: ./memcached
expose:
- "11211"
redis:
build:
context: ./redis
expose:
- "6379"
volumes:
- ./data/redis:/data
rethinkdb:
build:
context: ./rethinkdb
volumes:
- ./data/rethinkdb:/data
expose:
- "28015"
- "29015"
ports:
- "28080:8080"