-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.local.yml
53 lines (48 loc) · 1.02 KB
/
docker-compose.local.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
version: "3"
services:
app:
container_name: fastapi-gino-arq-uvicorn
image: fastapi-gino-arq-uvicorn
environment:
- REDIS_IP=cache
- REDIS_PORT=6379
- DB_HOST=database
- DATABASE=postgres
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_PORT=5432
depends_on:
- database
- redis
worker:
container_name: fastapi-gino-arq-uvicorn-worker
image: fastapi-gino-arq-uvicorn-worker
depends_on:
- database
- redis
environment:
- REDIS_IP=cache
- REDIS_PORT=6379
- DB_HOST=database
- DATABASE=postgres
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_PORT=5432
env_file: .env
redis:
image: redis
container_name: cache
expose:
- 6379
database:
image: "postgres:latest"
container_name: database
restart: always
ports:
- 54320:5432
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- database_data:/var/lib/postgresql/data
volumes:
database_data: