forked from Ehco1996/django-sspanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 992 Bytes
/
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
version: '3'
networks:
sspanel:
volumes:
mysql_data:
services:
nginx:
image: nginx
restart: always
container_name : nginx
volumes:
- ./configs/nginx/:/etc/nginx/conf.d
- .:/usr/src/app
ports:
- 80:80
depends_on:
- web
networks:
- sspanel
mysql:
image: mysql:5.6
container_name : mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: yourpass
MYSQL_DATABASE: sspanel
volumes:
- ./configs/mysqld/mysqld_charset.cnf:/etc/mysql/conf.d/mysqld_charset.cnf
- mysql_data:/var/lib/mysql
networks:
- sspanel
web:
container_name : web
restart: always
build: .
image: sspanel
environment:
MYSQL_PASSWORD: yourpass
MYSQL_HOST: mysql
DJANGO_ENV: production
volumes:
- .:/usr/src/app
depends_on:
- mysql
networks:
- sspanel
ports:
- 8080:8080
working_dir: /usr/src/app
command: uwsgi uwsgi.ini