-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·63 lines (57 loc) · 1.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
version: '3'
services:
api:
container_name: quotes_api_server
build:
context: .
dockerfile: ./Dockerfile
entrypoint: ./scripts/docker-entrypoint.sh
restart: always
networks:
- quotes-backend-tier
env_file: .env
ports:
- '8000:8000'
volumes:
- .:/app
depends_on:
- db
db:
image: mdillon/postgis:11
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: coin_quotes
networks:
- quotes-backend-tier
ports:
- '5437:5432'
volumes:
- pgdata:/var/lib/postgresql/data
redis:
container_name: quotes_redis_server
image: redis:5.0-alpine
restart: unless-stopped
networks:
- quotes-backend-tier
volumes:
- quotes-redis:/data
celery:
container_name: quotes_celery_server
build:
context: .
command: celery -A core worker -B -l INFO
restart: unless-stopped
networks:
- quotes-backend-tier
env_file: .env
depends_on:
- db
- redis
- api
volumes:
quotes-redis:
driver: local
pgdata:
networks:
quotes-backend-tier:
driver: bridge