-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 956 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 956 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
version: "3"
services:
stock:
image: stock
container_name: stock_service
#build :
#context : .
#dockerfile : Dockerfile
volumes:
- .:/STOCK
#command: python3 manage.py runserver 0.0.0.0:8000
command: gunicorn STOCK.wsgi:application --bind 0.0.0.0:8000
expose :
- "8000"
nginx:
image: nginx
container_name : nginx_service
volumes:
- .:/STOCK
- ./config/nginx:/etc/nginx/conf.d
# - /home/docker/volumes/nginx:/etc/nginx/conf.d
# - /home/docker/volumes/.static_root/:/static
ports:
- "80:80"
#mysql:
#image: mysql
#environment:
#MYSQL_ROOT_PASSWORD: "ds64079376*"
#MYSQL_DATABASE: "STOCK"
#MYSQL_USER: "e3hope"
#MYSQL_PASSWORD: "ds64079376*"
#volumes:
#- .:/STOCK
#- ./config/mysql:/mysql:rw
#ports:
#- "3305:3306"
depends_on :
#- mysql
- stock