-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.05 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
version: '3'
services:
server:
build:
context: ./
dockerfile: ./server/Dockerfile
command: python manage.py runserver 0.0.0.0:8000
restart: always
volumes:
- ./server:/server
ports:
- 8000:8000
depends_on:
- db
- redis
- client
environment:
DEBUG: 'True'
DATABASE_URL: 'postgres://postgres:@db:5432/postgres'
BROKER_URL: 'amqp://user:password@rabbitmq:5672/my_vhost'
env_file:
- ./.env
db:
image: postgres:11.2
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
redis:
image: redis:6.0.6-alpine
restart: always
volumes:
- ./data:/data
ports:
- "6379:6379"
client:
build:
context: ./
dockerfile: ./client/Dockerfile
volumes:
- ./client:/client
ports:
- 8080:8080
command: yarn serve