-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (91 loc) · 2.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.9'
services:
api:
image: backend
build: ./backend
entrypoint: "/bin/bash -c /data/entrypoint.sh"
volumes:
- ./backend/:/usr/src/app/
- ./entrypoint.sh:/data/entrypoint.sh
ports:
- 8000:8000
secrets:
- SECRET_KEY
- DATABASE_PASSWORD
- EMAIL_HOST_PASSWORD
environment:
DEBUG: 1
# SECRET_KEY: /run/secrets/SECRET_KEY
DATABASE_HOST: 'db.cryptotax.nerotecs.com'
DATABASE_NAME: 'cryptotax'
DATABASE_USER: 'cryptotaxx'
# DATABASE_PASSWORD: /run/secrets/DATABASE_PASSWORD
DATABASE_PORT: 7766
EMAIL_HOST: 'smtp.gmail.com'
EMAIL_PORT: 587
EMAIL_HOST_USER: '[email protected]'
# EMAIL_HOST_PASSWORD: /run/secrets/EMAIL_HOST_PASSWORD
CONTAINER: api
depends_on:
- redis
redis:
image: redis:alpine
celery:
image: backend
build: ./backend
entrypoint: "/bin/bash -c /data/entrypoint.sh"
volumes:
- ./backend/:/usr/src/app/
- ./entrypoint.sh:/data/entrypoint.sh
secrets:
- SECRET_KEY
- DATABASE_PASSWORD
- EMAIL_HOST_PASSWORD
environment:
DEBUG: 1
# SECRET_KEY: /run/secrets/SECRET_KEY
DATABASE_HOST: 'db.cryptotax.nerotecs.com'
DATABASE_NAME: 'cryptotax'
DATABASE_USER: 'cryptotaxx'
# DATABASE_PASSWORD: /run/secrets/DATABASE_PASSWORD
DATABASE_PORT: 7766
EMAIL_HOST: 'smtp.gmail.com'
EMAIL_PORT: 587
EMAIL_HOST_USER: '[email protected]'
# EMAIL_HOST_PASSWORD: /run/secrets/EMAIL_HOST_PASSWORD
CONTAINER: celery
depends_on:
- redis
celery-beat:
image: backend
build: ./backend
entrypoint: "/bin/bash -c /data/entrypoint.sh"
volumes:
- ./backend/:/usr/src/app/
- ./entrypoint.sh:/data/entrypoint.sh
secrets:
- SECRET_KEY
- DATABASE_PASSWORD
- EMAIL_HOST_PASSWORD
environment:
DEBUG: 1
# SECRET_KEY: /run/secrets/SECRET_KEY
DATABASE_HOST: 'db.cryptotax.nerotecs.com'
DATABASE_NAME: 'cryptotax'
DATABASE_USER: 'cryptotaxx'
# DATABASE_PASSWORD: /run/secrets/DATABASE_PASSWORD
DATABASE_PORT: 7766
EMAIL_HOST: 'smtp.gmail.com'
EMAIL_PORT: 587
EMAIL_HOST_USER: '[email protected]'
# EMAIL_HOST_PASSWORD: /run/secrets/EMAIL_HOST_PASSWORD
CONTAINER: celery-beat
depends_on:
- redis
secrets:
SECRET_KEY:
external: true
DATABASE_PASSWORD:
external: true
EMAIL_HOST_PASSWORD:
external: true