-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (53 loc) · 1.26 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
version: '3'
x-environment: &environment
- DJANGO_SETTINGS_MODULE=oc_website.settings
- SECRET_KEY=change_me # change this in docker-compose.override.yml
- DEBUG=${DEBUG}
- ANIDEX_API_KEY=${ANIDEX_API_KEY}
- ANIDEX_USER=${ANIDEX_USER}
- ANIDEX_PASS=${ANIDEX_PASS}
- ANIDEX_GROUP_ID=${ANIDEX_GROUP_ID}
- NYAA_SI_USER=${NYAA_SI_USER}
- NYAA_SI_PASS=${NYAA_SI_PASS}
- ANIDB_CLIENT=${ANIDB_CLIENT}
- ANIDB_CLIENTVER=${ANIDB_CLIENTVER}
- HOST_SITE=${HOST_SITE}
x-volumes: &volumes
- ./app:/app
- ./mnt:/mnt
- ./services/app/entrypoint.sh:/usr/local/bin/entrypoint.sh
services:
app:
build:
context: .
dockerfile: ./services/app/Dockerfile
command: uwsgi
depends_on:
- redis # celery in tests
ports:
- 8000:8000
- 8001:8001
volumes: *volumes
environment: *environment
redis:
image: redis:6
expose:
- 6379
celery:
build:
context: .
dockerfile: ./services/app/Dockerfile
command: celery
depends_on:
- redis
volumes: *volumes
environment: *environment
celery-beat:
build:
context: .
dockerfile: ./services/app/Dockerfile
command: celery-beat
depends_on:
- redis
volumes: *volumes
environment: *environment