-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
80 lines (80 loc) · 1.46 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
version: '2'
services:
web:
build:
context: .
dockerfile: DockerfileDev
entrypoint: /bin/bash
ports:
- "8021:8000"
environment:
- DISPLAY=$DISPLAY
- SSH_AUTH_SOCK=/tmp/ssh_auth_sock
links:
- postgres
- redis
tty: true
stdin_open: true
working_dir: /app-v/
user: root
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
volumes:
- ./:/app-v/
- ./pyenv:/home/test
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.Xauthority:/root/.Xauthority
env_file: docker.env
livereload:
build:
context: .
dockerfile: DockerfileDev
entrypoint: poetry run python manage.py livereload --host 0.0.0.0
ports:
- "35729:35729"
links:
- postgres
- redis
working_dir: /app-v/
user: test
volumes:
- ./:/app-v/
- ./pyenv:/home/test
env_file: docker.env
celery:
build:
context: .
dockerfile: DockerfileDev
entrypoint: poetry run celery worker -A project.celery -ldebug
links:
- postgres
- redis
working_dir: /app-v/
user: test
volumes:
- ./:/app-v/
- ./pyenv:/home/test
env_file: docker.env
celery-beat:
build:
context: .
dockerfile: DockerfileDev
entrypoint: poetry run celery beat -A project.celery -ldebug
links:
- postgres
- redis
working_dir: /app-v/
user: test
volumes:
- ./:/app-v/
- ./pyenv:/home/test
env_file: docker.env
redis:
image: redis
postgres:
image: mdillon/postgis:9.6-alpine
volumes:
- ./db:/var/lib/postgresql/data
env_file: docker.env