-
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) · 1.21 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.21 KB
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
services:
dj:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./dj:/dj
# depends_on:
# - db
environment:
- DJANGO_SETTINGS_MODULE=dj.settings
networks:
- mynet
deploy:
resources:
limits: # check parser - Theres a two day limit on keys
cpus: '1' # Limit to 0.5 CPU cores
# Keys limit of 2days exists at source of creation. This memory limit is arbitrary.
memory: '800m'
restart: unless-stopped
nginx:
image: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
depends_on:
- dj
networks:
- mynet
deploy:
resources:
limits: # check parser - Theres a two day limit on keys
cpus: '0.5' # Limit to 0.5 CPU cores
# Keys limit of 2days exists at source of creation. This memory limit is arbitrary.
memory: '64m'
restart: unless-stopped
# db:
# image: postgres:latest
# environment:
# POSTGRES_USER: <your_db_user>
# POSTGRES_PASSWORD: <your_db_password>
# POSTGRES_DB: <your_db_name>
# networks:
# - mynet
networks:
mynet: