-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
173 lines (163 loc) · 3.92 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
version: "3.6"
services:
frontend:
image: austinv11/discord4j:web-frontend
# build: web-frontend
volumes:
- type: volume
source: frontend-data-new
target: /dist/
read_only: false
volume:
nocopy: false
# restart: always Spams the logs if we do this
frontend-old:
image: austinv11/discord4j:web-old
# build: web-frontend
volumes:
- type: volume
source: frontend-data
target: /dist/
read_only: false
volume:
nocopy: false
# restart: always Spams the logs if we do this
nginx:
depends_on:
- frontend
- frontend-old
image: austinv11/discord4j:nginx #-nossl # nossl for testing
# build: nginx
volumes:
- type: volume
source: frontend-data
target: /var/www/html/
read_only: true
volume:
nocopy: false
- type: volume
source: frontend-data-new
target: /new_site/
read_only: true
volume:
nocopy: false
- ../nginx_data/:/cert
restart: always
ports:
- 80:80
- 443:443
# - 1234:1234
# - 2345:2345
# - 3456:3456
# - 4567:4567
# - 5678:5678
# - 9000:9000
# - 2314:2314
networks:
nginx-net:
# database:
# image: postgres:10.4-alpine
#build: database
# restart: always
# ports:
# - 5432:5432
# Don't forget to set these environment variables!
# environment:
# POSTGRES_PASSWORD: "$POSTGRES_PASSWORD"
# POSTGRES_USER: "postgres"
# PGDATA: "/var/lib/postgresql/data/pgdata"
# volumes:
# - ../postgres_data/:/var/lib/postgresql/data/pgdata
# networks:
# db-net:
# ci:
# depends_on:
# - database
# image: drone/drone:0.8.5
# restart: always
# ports:
# - 1234:8000
# - 9000
# volumes:
# - ../drone_data/:/var/lib/drone/
# - /var/run/docker.sock:/var/run/docker.sock
# environment:
# - DRONE_OPEN=true
# - DRONE_HOST=https://ci.discord4j.com
# - DRONE_GITHUB=true
# - DRONE_ORGS=Discord4J
# - DRONE_ADMIN=austinv11
# - DRONE_GITHUB_CLIENT=${DRONE_GITHUB_CLIENT} # Stuff from manually created gh OAuth app
# - DRONE_GITHUB_SECRET=${DRONE_GITHUB_SECRET}
# - DRONE_SECRET=${DRONE_SECRET} # Arbitrary secret for internal communication
# - DRONE_DATABASE_DRIVE=postgres TODO: use postgres later
# - DRONE_DATABASE_DATASOURCE=postgres://postgres@database:5432/postgres?sslmode=disable
# networks:
# nginx-net:
# drone-net:
# db-net:
# 2 drone agents capable of running 4 parallel builds, each
# drone-agent1:
# image: drone/agent:0.8.5
# command: agent
# restart: always
# depends_on:
# - ci
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# environment:
# - DRONE_SERVER=ci:9000
# - DRONE_SECRET=${DRONE_SECRET}
# - DRONE_MAX_PROCS=4
# networks:
# drone-net:
# drone-agent2:
# image: drone/agent:0.8.5
# command: agent
# restart: always
# depends_on:
# - ci
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# environment:
# - DRONE_SERVER=ci:9000
# - DRONE_SECRET=${DRONE_SECRET}
# - DRONE_MAX_PROCS=4
# networks:
# drone-net:
portainer:
image: portainer/portainer
restart: always
ports:
- 9000:9000
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ../portainer_data/:/data
networks:
nginx-net:
webhook:
depends_on:
- nginx
image: austinv11/discord4j:webhook
restart: always
ports:
- 2314:2314
github:
depends_on:
- nginx
image: austinv11/discord4j:github
restart: always
expose:
- 7667
environment:
- ACCESS_TOKEN=${ACCESS_TOKEN}
networks:
nginx-net:
volumes:
frontend-data:
frontend-data-new:
networks:
nginx-net:
# db-net:
# drone-net: