-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1000 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1000 Bytes
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
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
image: ehco1996/django-sspanel:runtime
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