-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (61 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
71 lines (61 loc) · 1.38 KB
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
version: '3.9'
services:
database:
image: postgres:15
ports:
- "5436:5436"
command: -p 5436
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- postgres_volume:/var/lib/postgresql/data/
redis:
restart: unless-stopped
image: redis:7.0.5-alpine
expose:
- 6379
web:
build: .
image: web:latest
command: sh -c "./scripts/django.sh"
volumes:
- .:/app # sync with docker with local folders
ports:
- "8000:8000"
depends_on:
- database
- redis
nginx:
build: ./nginx
volumes:
- .:/app # sync with docker with local folders
ports:
- "80:80"
depends_on:
- web
celery:
build: .
image: celery:0.1
container_name: celery
volumes:
- .:/app
command: celery -A media_stream worker -l INFO -Q celery,high --pool=solo
depends_on:
- web
# # http://localhost:5050/
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- "5050:80"
volumes:
- pgadmin_volumne:/var/lib/pgadmin
volumes:
postgres_volume:
pgadmin_volumne: