-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (50 loc) · 1.13 KB
/
docker-compose.yaml
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
services:
database:
container_name: tambua_shamba_database
image: kartoza/postgis:12.0
networks:
- proxynet
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=soilcarbon
- POSTGRES_PASSWORD=soilcarbon
- POSTGRES_DB=soilcarbon
restart: "on-failure"
backend-server:
container_name: tambua_shamba_server
build:
context: ./tambuashamba_server
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/tambuashamba_server
ports:
- 8000:8000
env_file:
- ./.env.dev
networks:
- proxynet
restart: "on-failure"
depends_on:
- database
frontend-server:
container_name: tambua_shamba_client
build:
context: ./tambuashamba_client
volumes:
- .:/frontend-server
- /frontend-server/node_modules
ports:
- 4200:4200
env_file:
- ./.env.dev
networks:
- proxynet
restart: "on-failure"
depends_on:
- backend-server
networks:
proxynet:
name: groweverything_network
volumes:
postgres_data: