forked from ParentJA/django-postgres-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1001 Bytes
/
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
version: "3.8"
services:
database:
container_name: perusable-database
environment:
- POSTGRES_DB=perusable
- POSTGRES_USER=perusable
- POSTGRES_PASSWORD=perusable
image: postgres:14.1
ports:
- "5433:5432"
volumes:
- perusable-database:/var/lib/postgresql/data
server:
build:
context: ./server
container_name: perusable-server
depends_on:
- database
environment:
- SQL_ENGINE=django.db.backends.postgresql
- SQL_DATABASE=perusable
- SQL_USER=perusable
- SQL_PASSWORD=perusable
- SQL_HOST=perusable-database
- SQL_PORT=5432
command: [ "bash", "start.sh" ]
ports:
- 8003:8000
volumes:
- ./server:/usr/src/app
client:
build:
context: ./client
command: [ "npm", "start" ]
container_name: perusable-client
depends_on:
- server
ports:
- 3000:3000
volumes:
- ./client:/usr/src/app
volumes:
perusable-database: