-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
executable file
·76 lines (67 loc) · 1.4 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
version: '3.5'
x-base: &base
build:
context: .
args:
- FURY_AUTH
env_file: .dockerenv
volumes:
- $PWD:/home/app:cached
depends_on:
- postgres
- redis
networks:
- default
- internal
services:
web:
<<: *base
ports:
- 5000:80
container_name: alvinchow_backend_web
command: /home/app/entrypoint/run-web-dev.sh
environment:
- PORT=80
- DEVELOP
- AUTORELOAD
grpc:
<<: *base
container_name: alvinchow_backend_grpc
command: /home/app/entrypoint/run-grpc-dev.sh
ports:
- 51051:50051
environment:
- DEVELOP
- AUTORELOAD
worker:
<<: *base
container_name: alvinchow_backend_worker
command: /home/app/entrypoint/run-worker-dev.sh
environment:
- DEVELOP
scheduler:
<<: *base
container_name: alvinchow_backend_scheduler
command: /home/app/entrypoint/run_scheduler.py
postgres:
container_name: alvinchow_backend_postgres
image: postgres:12-alpine
ports:
- 6432:5432
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
volumes:
- ~/.postgres_data/alvinchow-backend:/var/lib/postgresql/data:delegated
networks:
- internal
redis:
container_name: alvinchow_backend_redis
image: redis:6.0.4-alpine
networks:
- internal
networks:
default:
external:
name: alvinchow
internal: