-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (53 loc) · 1.12 KB
/
docker-compose.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
# $Id: docker-compose.yml v.0.5 $ $Date: 2018/05/10 $ $Author: GB 'gionniboy' Pullara <[email protected]> $
# Docker-compose -- Build Django/Postgres/Redis/MailHog dev env based on docker containers.
version: "3.7"
services:
django:
build:
context: .
dockerfile: ./Dockerfile
shm_size: "2gb"
image: djangazzo/django:latest
# user: ${CURRENT_UID:-}
env_file:
- env-example
volumes:
- .:/app
networks:
- djangazzo
ports:
- "8000:8000"
depends_on:
- postgres
- redis
- mailhog
restart: unless-stopped
postgres:
image: postgres:15-alpine
env_file:
- .env
volumes:
- postgres_data_local:/var/lib/postgresql/data
networks:
- djangazzo
ports:
- "5432:5432"
restart: unless-stopped
redis:
image: redis:7-alpine
networks:
- djangazzo
ports:
- "6379:6379"
restart: unless-stopped
mailhog:
image: mailhog/mailhog:v1.0.1
networks:
- djangazzo
ports:
- "8025:8025"
restart: unless-stopped
volumes:
postgres_data_local: {}
networks:
djangazzo: