-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
105 lines (97 loc) · 2.35 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
97
98
99
100
101
102
103
104
services:
api-orgfin:
container_name: "api-orgfin"
platform: "linux/amd64"
build:
context: "./back-fastapi"
dockerfile: "./Dockerfile"
target: ${TARGET:-dev}
env_file:
- ${APP_ENV_FILE:-./back-fastapi/.env}
ports:
- 8000:8000
# - 5679:5678
environment:
- DB_HOST=db-orgfin
tty: true
volumes:
- ./back-fastapi:/app
restart: always
depends_on:
- db-orgfin
front-orgfin:
container_name: "front-orgfin"
build:
context: "./src-front"
dockerfile: "../docker/Dockerfile.front.dev"
ports:
- 5173:5173
tty: true
volumes:
- ./src-front:/app
- /app/node_modules
db-orgfin:
image: postgres:15.3-bullseye
container_name: Postgres-orgfin
restart: always
environment:
# POSTGRES_USER: urlshortener
POSTGRES_PASSWORD: budgeter
ports:
- 5432:5432
volumes:
- ./dbdata:/var/lib/postgresql/data
# adminer-orgfin:
# image: adminer
# container_name: Adminer-orgfin
# restart: always
# ports:
# - 8080:8080
redis-orgfin:
image: redis:alpine
container_name: redis-orgfin
ports:
- 6379:6379
command: redis-server --bind 0.0.0.0
restart: always
celery-orgfin:
container_name: "celery-orgfin"
platform: "linux/amd64"
build:
context: "./back-fastapi"
dockerfile: "./Dockerfile"
target: ${TARGET:-dev}
env_file:
- ${APP_ENV_FILE:-./back-fastapi/.env}
command: celery -A app.celery worker -l info
volumes:
- ./back-fastapi:/app
depends_on:
- redis-orgfin
celery-beat-orgfin:
container_name: "celery-beat-orgfin"
platform: "linux/amd64"
env_file:
- ${APP_ENV_FILE:-./back-fastapi/.env}
build:
context: "./back-fastapi"
dockerfile: "./Dockerfile"
target: ${TARGET:-dev}
command: celery -A app.celery beat -l info
volumes:
- ./back-fastapi:/app
depends_on:
- redis-orgfin
dashboard-redis-celery:
container_name: "dashboard-redis-celery"
build:
context: "./back-fastapi"
dockerfile: "./Dockerfile"
target: ${TARGET:-dev}
env_file:
- ${APP_ENV_FILE:-./back-fastapi/.env}
command: /bin/sh -c "celery --broker=$$CELERY_BROKER_URL/0 flower --port=5555"
ports:
- 5556:5555
depends_on:
- redis-orgfin