-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (35 loc) · 890 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (35 loc) · 890 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
version: "3.8"
volumes:
app_data:
name: lspm_app_data
static_files:
name: lspm_static_files
media_files:
name: lspm_media_files
services:
django:
build:
context: .
dockerfile: Dockerfile
image: lspm:development
restart: unless-stopped
container_name: lspm_django
command: /app/docker/start.sh server
depends_on:
- postgres
env_file:
- .env
ports:
- 8000:8000
volumes:
- .:/app
- static_files:/app/static:rw
- media_files:/app/media:rw
postgres:
image: postgres:13.3-alpine
hostname: lspm-postgres
container_name: lspm_postgres
volumes:
- app_data:/var/lib/postgresql/data
env_file:
- .env