-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
83 lines (76 loc) · 1.53 KB
/
docker-compose.yaml
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
version: "3.9"
services:
rds:
container_name: postgresql
image: postgres:latest
env_file:
- configurations/.env.staging
volumes:
- pgdata:/var/lib/postgresql/data/
ports:
- "5432:5432"
restart: on-failure
redis:
container_name: redis
image: redis:latest
ports:
- "6379:6379"
volumes:
- redisdata:/data
- redisconfig:/etc/redis
restart: on-failure
influxdb:
container_name: influxdb
image: influxdb:latest
ports:
- "8086:8086"
env_file:
- configurations/.env.staging
volumes:
- influxdata:/var/lib/influxdb
restart: on-failure
api:
container_name: http-api
build:
context: .
dockerfile: Dockerfile
working_dir: /server
command: uvicorn server.main:app --host 0.0.0.0 --port 8000 --reload
env_file:
- configurations/.env.staging
volumes:
- .:/server
ports:
- "8000:8000"
restart: on-failure
depends_on:
- redis
- influxdb
- rds
redis_broker:
container_name: redis-broker
image: redis:latest
ports:
- "6380:6379"
volumes:
- redisbrokerdata:/data
- redisbrokerconfig:/etc/redis
restart: on-failure
depends_on:
- api
queue:
container_name: queue
build: ./queue
user: nobody
env_file:
- configurations/.env.staging
depends_on:
- redis_broker
restart: on-failure
volumes:
pgdata:
redisdata:
redisconfig:
influxdata:
redisbrokerdata:
redisbrokerconfig: