forked from pplonski/simple-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-common.yml
35 lines (34 loc) · 970 Bytes
/
docker-common.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
version: '2'
services:
backend:
restart: always
build:
context: .
dockerfile: ./docker/backend/Dockerfile
volumes:
- .:/app
environment:
DATABASE_URL: postgres
DATABASE_NAME: simple_tasks
DATABASE_USER: tasks_user
DATABASE_PASS: tasks_password
DATABASE_PORT: 5432
REDIS_URL: redis
BROKER_URL: rabbitmq
DJANGO_DEBUG: 'false'
server:
restart: always
build:
context: .
dockerfile: ./docker/backend/Dockerfile.server
#volumes:
# - .:/app
environment:
DATABASE_URL: postgres
DATABASE_NAME: simple_tasks
DATABASE_USER: tasks_user
DATABASE_PASS: tasks_password
DATABASE_PORT: 5432
REDIS_URL: redis
BROKER_URL: rabbitmq
DJANGO_DEBUG: 'false'