-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
60 lines (55 loc) · 1.18 KB
/
docker-compose.dev.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
wse-project:
container_name: wse-project-dev
image: wse-project-dev
volumes:
- .:/wselfedu
- static_volume:/wselfedu/static
build:
context: .
dockerfile: ./docker/project/Dockerfile.dev
expose:
- 8000
env_file:
- .env_vars/.env
command:
gunicorn config.wsgi:application --bind 0.0.0.0:8000
depends_on:
- wse-db-postgres
- wse-redis
wse-db-postgres:
container_name: wse-db-postgres
image: wse-db-postgres
volumes:
- postgres_data:/var/lib/postgresql/data
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
env_file:
- .env_vars/.env.postgres
ports:
- 6543:5432
wse-server:
container_name: wse-server
image: wse-server
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
volumes:
- static_volume:/wselfedu/static
ports:
- 80:80
depends_on:
- wse-project
wse-redis:
container_name: wse-redis
image: wse-redis
build:
context: .
dockerfile: ./docker/redis/Dockerfile
hostname: redis
ports:
- 6379:6379
volumes:
postgres_data:
static_volume: