-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
150 lines (139 loc) · 4.46 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
version: '3'
services:
# Main massassi DB
db:
image: postgres:14.1-alpine
restart: always
expose:
- 5432
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_INITDB_ARGS: --auth-host=scram-sha-256
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
volumes:
- massassi-postgres-data:/var/lib/postgresql/data
# Main web server; dispatches requests to the various apps based on
# hostname/filename/etc.
web:
image: nginx:latest
restart: always
ports:
- "80:80"
volumes:
- ./massassi-etc/:/app/massassi-etc/:ro
# Static parts of massassi, including:
# - static/ (stuff required by the entire site like css and main images)
# - media/ (user-generated content like levels, screenshots, etc.)
# - etc/ (history and brian stuff mounted on a volume)
# - the tutorials and other pages generated by the static site generator
massassi-static:
image: nginx:latest
hostname: massassi-static
restart: always
expose:
- 8001
# ports:
# - "8001:8001"
volumes:
- django-static:/jedibird-static:ro
- ./massassi-static/output:/app:ro
- ./massassi-static/conf/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- massassi-user-data:/massassi-user-data:ro
# Dynamic parts of massassi, written in python/django and served by
# gunicorn
massassi-django:
hostname: massassi-django
build:
context: ./massassi-django
restart: always
expose:
- 8000
environment:
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY}
MASSASSI_DATABASE_PASSWORD: ${MASSASSI_DATABASE_PASSWORD}
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE}
MASSASSI_DATABASE_HOST: ${MASSASSI_DATABASE_HOST}
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
# AWS_BUCKET_SABERWORKS: ${AWS_BUCKET_SABERWORKS}
# AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
# AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
volumes:
- django-static:/jedibird-static:rw
- massassi-user-data:/massassi-user-data:rw
- ./import:/home/brian/code/massassi-django/import
massassi-forums:
hostname: massassi-forums
build:
context: ./massassi-forums
restart: always
expose:
- 8002
# ports:
# - "8002:8002"
tacc-db:
image: mysql:8
hostname: tacc-db
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${TACC_MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${TACC_MYSQL_DATABASE}
MYSQL_USER: ${TACC_MYSQL_USER}
MYSQL_PASSWORD: ${TACC_MYSQL_PASSWORD}
volumes:
- ./tacc-db/initial-data:/docker-entrypoint-initdb.d:ro
- tacc-mysql-data:/var/lib/mysql
tacc-web:
hostname: tacc-web
build:
context: ./tacc-web
restart: always
ports:
- "9000:9000"
environment:
MYSQL_HOST: tacc-db
MYSQL_DATABASE: ${TACC_MYSQL_DATABASE}
MYSQL_USER: ${TACC_MYSQL_USER}
MYSQL_PASSWORD: ${TACC_MYSQL_PASSWORD}
rbots-web:
hostname: rbots-web
build:
context: ./rbots-web
restart: always
ports:
- "9001:9001"
jkarena-web:
hostname: rbots-web
build:
context: ./jkarena-web
restart: always
ports:
- "9002:9002"
massassi.com-web:
hostname: massassi-com
build:
context: ./massassi.com-web
restart: always
ports:
- "9003:9003"
volumes:
- ./massassi.com-web/public:/var/www/html
# saberworks-web:
# hostname: saberworks-web
# build:
# context: ./saberworks-web
# stdin_open: true # docker run -i
# tty: true # docker run -t
# # entrypoint: /bin/bash
# restart: always
# ports:
# - "9004:3000"
# volumes:
# - ./saberworks-web:/home/node:rw
volumes:
massassi-postgres-data:
massassi-user-data:
django-static:
tacc-mysql-data: