-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 971 Bytes
/
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
version: "3.9"
services:
db:
container_name: db
image: postgres:15-alpine
volumes:
- ./postgres/data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
expose:
- 5432
restart: always
backend:
container_name: backend
build:
context: .
dockerfile: ./dockerfiles/dev/django/Dockerfile
volumes:
- ./core:/usr/src/app
working_dir: /usr/src/app
command: python manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
environment:
- DEBUG=True
env_file:
- ./envs/dev/django/.env
restart: always
depends_on:
- db
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
- '5000:80'
- '25:25'
- '143:143'
volumes:
- smtp4dev-data:/smtp4dev
environment:
- ServerOptions__HostName=smtp4dev
volumes:
smtp4dev-data: