-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yaml
93 lines (83 loc) · 1.71 KB
/
docker-compose-dev.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.11'
services:
django_gunicorn:
volumes:
- static_files:/app/static
- .:/app
env_file:
- .env
build:
context: .
entrypoint : ["./deveentr.sh"]
expose:
- 8000
depends_on :
- postgres
channels:
build:
context: .
command: daphne -b 0.0.0.0 -p 8001 evento.asgi:application
expose:
- 8001
volumes:
- .:/app
env_file:
- .env
depends_on:
- django_gunicorn
- redis
extra_hosts:
- "localhost:host-gateway"
background_tasks:
env_file:
- .env
build: .
volumes:
- .:/app
entrypoint : ["./backgroundentypoint.sh"]
depends_on:
- django_gunicorn
- postgres
redis:
image: redis:7.2.3-alpine
restart: always
ports:
- "${REDIS_PORT}:6379"
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- redis_data:/data
command: redis-server --requirepass ${REDIS_PASSWORD}
nginx:
build:
context: ./nginx
args:
CONFIG_FILE: nginx.dev.conf.template
ports:
- "8000:80"
depends_on:
- django_gunicorn
- channels
postgres:
image: postgres
expose:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${DEFAULT_PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${DEFAULT_PGADMIN_PASSWORD}
ports:
- "8080:80" # Access pgAdmin externally
depends_on:
- postgres
volumes:
static_files:
postgres_data:
redis_data: