-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1.1 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
services:
line-provider:
build:
context: line_provider
container_name: line-provider
command: "uvicorn main:app --host 0.0.0.0 --port 8080"
ports:
- "8080:8080"
depends_on:
- rabbit
restart: always
bet-maker:
build:
context: bet_maker
container_name: bet-maker
entrypoint: >
sh -c
"
sleep 10
echo Stairway testing
alembic upgrade head
alembic downgrade -1
echo Applying alembic migration...
alembic upgrade head
echo Starting uvicorn server...
uvicorn main:app --host 0.0.0.0 --port 8081
done
"
env_file:
- bet_maker/.env
ports:
- "8081:8081"
depends_on:
- postgres
- rabbit
restart: always
postgres:
image: postgres:17-alpine
container_name: postgres
restart: always
ports:
- "5432:5432"
env_file:
- bet_maker/.env
rabbit:
image: rabbitmq:4.0.2-alpine
container_name: rabbit
restart: always
env_file:
- line_provider/.env
ports:
- "5672:5672"