forked from RobbieHan/gistandard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (33 loc) · 883 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
version: '3'
services:
mysql:
image: mysql:5.6
volumes:
- /sandbox/mysql:/var/lib/mysql
expose:
- "3306"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=gistandard
- MYSQL_USER=ddadmin
web:
build: .
restart: always
volumes:
- /sandbox/media:/sandbox/gistandard/media
- /sandbox/nginx/nginx.conf:/etc/nginx/nginx.conf
command: bash -c "uwsgi config/sandbox.ini && nginx -g 'daemon off;'"
ports:
- "80:80"
depends_on:
- mysql
# nginx:
# image : nginx:alpine
# volumes:
# - /sandbox/nginx/nginx.conf:/etc/nginx/nginx.conf
# ports:
# - "80:80"
# depends_on:
# - web