forked from Ehco1996/django-sspanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1 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
version: '3'
services:
db:
image: mysql:5.6
container_name : sspanel-db
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_network
web:
container_name : sspanel-web
build: .
image: sspanel
environment:
MYSQL_PASSWORD: yourpass
MYSQL_HOST: db
volumes:
- .:/src/django-sspanel
depends_on:
- db
networks:
- sspanel_network
ports:
- 8080:8080
working_dir: /src/django-sspanel
command: uwsgi uwsgi.ini
nginx:
image: nginx
restart: always
container_name : sspanel-nginx
volumes:
- ./configs/nginx/:/etc/nginx/conf.d
- static:/src/django-sspanel/static
ports:
- 80:80
depends_on:
- web
networks:
- sspanel_network
networks:
sspanel_network:
volumes:
static:
mysql-data: