-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.45 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
version: "3"
services:
backend:
build: ./
image: alexfoxalt/alexfoxalt/csv_faker_app
container_name: csv_faker
working_dir: /CSVFaker
restart: always
command: ./commands/start_server.sh
ports:
- "8000:8008"
volumes:
- ./accounts:/CSVFaker/accounts
- ./base:/CSVFaker/base
- ./commands:/CSVFaker/commands
- ./CSVFaker:/CSVFaker/CSVFaker
- ./services:/CSVFaker/services
- ./manage.py:/CSVFaker/manage.py
- ./requirements.txt:/CSVFaker/requirements.txt
- ./db.sqlite3:/CSVFaker/db.sqlite3
- ./media:/CSVFaker/media
env_file:
- .env
redis:
image: redis
volumes:
- ./redis:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
depends_on:
- backend
nginx:
image: nginx:1.19
volumes:
- ./nginx:/etc/nginx/conf.d
- ./static:/static
- ./media:/media
- ./cert.key:/keys/cert.key
- ./cert.crt:/keys/cert.crt
ports:
- "80:80"
- "443:443"
depends_on:
- celery
celery:
restart: always
build: ./
command: celery -A CSVFaker worker -l info -P solo --concurrency 8
volumes:
- ./accounts:/CSVFaker/accounts
- ./base:/CSVFaker/base
- ./CSVFaker:/CSVFaker/CSVFaker
- ./services:/CSVFaker/services
- ./db.sqlite3:/CSVFaker/db.sqlite3
- ./media:/CSVFaker/media
depends_on:
- redis
volumes:
media: { }
nginx: { }
redis: { }