-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·49 lines (45 loc) · 1010 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·49 lines (45 loc) · 1010 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
version: '3.4'
services:
app:
image: app
env_file:
- .env
build:
context: .
dockerfile: ./DockerFile
ports:
- "8000:8000"
# volumes:
# - ./nginx.conf:/etc/nginx/conf.d/default.conf
# - ./redis.conf:/etc/redis/redis.conf
develop:
watch:
- action: sync
path: .
target: /usr/src/app
- action: rebuild
path: .
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./staticfiles:/usr/src/app/staticfiles
ports:
- "80:80"
redis:
image: redis:latest
command: redis-server /etc/redis/redis.conf
volumes:
- ./redis.conf:/etc/redis/redis.conf
ports:
- "6379:6379"
# sever:
# build:
# context: ./weather_app
# dockerfile: ./DockerFile
# ports:
# - "3000:3000"
# develop:
# watch:
# - action: rebuild
# path: ./weather_app