-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (57 loc) · 1.33 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
version: '3'
services:
starcross:
restart: always
depends_on:
- postgres
build: ./starcross/
volumes:
- django-static:/starcross/static
- django-media:/starcross/media
env_file: .env
environment:
DEBUG: 'false'
command: sh -c "python manage.py collectstatic --noinput &&
gunicorn starcross.wsgi:application --workers=2 --threads=4 --worker-class=gthread
--bind :80 --worker-tmp-dir /dev/shm"
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
- "443:443"
volumes:
- django-static:/starcross/static
- django-media:/starcross/media
- www-certs:/etc/letsencrypt
env_file: .env
links:
- starcross:starcross
- meghan:meghan
postgres:
restart: always
image: postgres:16.0
env_file: .env
volumes:
- pgdata:/var/lib/postgresql/data/
meghan:
depends_on:
- mysql
image: wordpress:5.8.2
restart: always
env_file: .env
volumes:
- meghan-content:/var/www/html/wp-content
mysql:
image: mysql:5.7.36
restart: always
env_file: .env
volumes:
- mysqldata:/var/lib/mysql
volumes:
django-static:
django-media:
www-certs:
pgdata:
meghan-content:
mysqldata: