-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yaml
59 lines (59 loc) · 1.15 KB
/
docker-compose.local.yaml
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
services:
blog:
build: .
command: bash -c "python manage.py runserver 0.0.0.0:8002"
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
image: blog:latest
ports:
- 8000:8000
restart: always
volumes:
- static_blog:/app/blog/staticfiles
- .:/app/blog
nginx:
image: nginx:1.15-alpine
ports:
- 80:80
- 443:443
restart: always
volumes:
- static_blog:/app/blog/staticfiles
- ./nginx:/etc/nginx/conf.d
postgres:
env_file:
- .env
healthcheck:
interval: 5s
retries: 5
test:
- CMD-SHELL
- pg_isready -U $POSTGRES_USER -d $POSTGRES_DB
timeout: 5s
image: postgres:12.0-alpine
ports:
- 5432:5432
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
redis:
command: --requirepass ${REDIS_PASSWORD}
env_file: .env
image: redis:6
ports:
- 6379:6379
restart: always
volumes:
- redisdata:/data
version: "3"
volumes:
pgdata: null
redisdata: null
static_blog: null
networks:
default:
external:
name: thatcherthornberry