forked from ibutsu/ibutsu-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
70 lines (70 loc) · 2.02 KB
/
docker-compose.dev.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
version: '3'
services:
frontend:
environment:
NODE_ENV: production
REACT_APP_SERVER_URL: http://localhost:8080/api
image: node:14
command: /bin/bash -c 'yarn install && yarn run devserver'
working_dir: /mnt
user: ${UID:-1000}
volumes:
- "./frontend:/mnt"
ports:
- "3000:3000"
depends_on:
- backend
backend:
environment:
- JWT_SECRET=jwtsecret
- POSTGRESQL_HOST=postgres
- POSTGRESQL_PORT=5432
- POSTGRESQL_DATABASE=ibutsu
- POSTGRESQL_USER=ibutsu
- POSTGRESQL_PASSWORD=ibutsu
- CELERY_BROKER_URL=redis://redis:6379
- CELERY_RESULT_BACKEND=redis://redis:6379
- IBUTSU_SUPERADMIN_PASSWORD=admin12345
- IBUTSU_SUPERADMIN_NAME=Administrator
- HOME=/mnt
image: python:3.9
command: /bin/bash -c 'python -m venv .backend_env && source .backend_env/bin/activate && pip install -U pip setuptools wheel && pip install -r requirements.txt && python -m ibutsu_server --host 0.0.0.0'
working_dir: /mnt
volumes:
- "./backend:/mnt"
user: ${UID:-1000}
ports:
- "8080:8080"
depends_on:
- postgres
- redis
worker:
environment:
- COLUMNS=80
- POSTGRESQL_HOST=postgres
- POSTGRESQL_PORT=5432
- POSTGRESQL_DATABASE=ibutsu
- POSTGRESQL_USER=ibutsu
- POSTGRESQL_PASSWORD=ibutsu
- CELERY_BROKER_URL=redis://redis:6379
- CELERY_RESULT_BACKEND=redis://redis:6379
- HOME=/mnt
image: python:3.9
command: /bin/bash -c 'python -m venv .worker_env && source .worker_env/bin/activate && pip install -U pip setuptools wheel && pip install -r requirements.txt && ./celery_worker.sh'
working_dir: /mnt
volumes:
- "./backend:/mnt"
user: ${UID:-1000}
depends_on:
- backend
- postgres
- redis
postgres:
environment:
POSTGRES_USER: ibutsu
POSTGRES_PASSWORD: ibutsu
POSTGRES_DB: ibutsu
image: postgres:14
redis:
image: redis:latest