-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
91 lines (79 loc) · 1.75 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
84
85
86
87
88
89
90
91
version: '3.3'
services:
db:
ports:
- 4444:5432
environment:
POSTGRES_USER: postgres
POSTGRES_DB: lenmo
POSTGRES_PASSWORD: postgres
image: postgres:10.1-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
nginx:
image: nginx:1.15-alpine
restart: unless-stopped
volumes:
- Lenmo_run:/run/
- ./nginx:/etc/nginx/conf.d
- ./static:/static
ports:
- "80:80"
- "443:443"
lenmo_app:
environment:
PG_USER: postgres
PG_NAME: lenmo
PG_PASSWORD: postgres
PG_HOSTNAME: db
C_FORCE_ROOT: "true"
REDIS_HOSTNAME: redis
build: .
image: lenmo_app
entrypoint: /docker-entrypoint.sh
volumes:
- .:/opt/LenmoTest
- Lenmo_run:/run/
- ./static:/static
depends_on:
- db
- nginx
redis:
image: redis:latest
celery:
restart: unless-stopped
image: lenmo_app
environment:
PG_USER: postgres
PG_NAME: lenmo
PG_PASSWORD: postgres
PG_HOSTNAME: db
C_FORCE_ROOT: "true"
REDIS_HOSTNAME: redis
command: sh -c "cd /opt/LenmoTest && celery -A LenmoTest worker -l info"
volumes:
- .:/opt/LenmoTest
depends_on:
- db
- redis
- lenmo_app
celery-beat:
restart: unless-stopped
image: lenmo_app
environment:
PG_USER: postgres
PG_NAME: lenmo
PG_PASSWORD: postgres
PG_HOSTNAME: db
C_FORCE_ROOT: "true"
REDIS_HOSTNAME: redis
command: sh -c "find . -type f -name "celerybeat.pid" -exec rm -f {} \; && cd /opt/LenmoTest && celery -A LenmoTest beat -l info"
volumes:
- .:/opt/LenmoTest
depends_on:
- db
- redis
- lenmo_app
volumes:
postgres_data:
Lenmo_run: