-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
83 lines (77 loc) · 1.59 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3'
services:
app:
build:
context: .
args:
dev: 1
command: /bin/sh /srv/app/wsgi.sh --runserver
volumes:
- ./app/:/srv/app
- ./bin:/srv/bin
- ./lib:/srv/lib
- ./teleforma/:/srv/src/teleforma/teleforma
- ./var/media:/srv/media
- ./var/backup:/srv/backup
- ./var/static:/srv/static
- ./var/log/app:/var/log/app
- ./var/log/uwsgi:/var/log/uwsgi
- ./var/run/app:/var/run/app
links:
- db:db
- redis
- memcached
- channels
depends_on:
- db
- redis
- memcached
env_file:
- env/debug.env
db:
image: postgres:13
env_file:
- env/debug.env
environment:
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./var/lib/postgresql:/var/lib/postgresql/data:rw
- ./bin:/srv/bin
- ./var/backup/:/srv/backup
- /etc/localtime:/etc/localtime:ro
memcached:
image: memcached:alpine
entrypoint:
- memcached
- -m 1024
- -I 128m
- -v
redis:
image: redis
entrypoint:
- redis-server
- --appendonly yes
volumes:
- ./var/redis:/data
channels:
build:
context: .
args:
dev: 1
command: /bin/sh /srv/app/asgi.sh
volumes:
- ./app/:/srv/app
- ./bin:/srv/bin
- ./lib:/srv/lib
- ./teleforma/:/srv/src/teleforma/teleforma
- ./var/log/app:/var/log/app
- ./var/run/app:/var/run/app
links:
- db
- redis
env_file:
- env/debug.env
volumes:
app:
db:
redis: