-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 964 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
50
51
version: "3"
services:
app:
# restart: always
image: fantaso/digital-farming-app:3
container_name: digital-farming-app
build:
context: ./app
dockerfile: Dockerfile
labels:
/app: "IoT Digital Farming Web Application"
/site: "Website"
/admin: "Administrator Manager"
command: python manage.py runserver
volumes:
- ./app:/app
ports:
- "5000:5000"
networks:
- db_net
depends_on:
- db
db:
# restart: always
image: postgres:11.2
hostname: db
container_name: digital-farming-db
environment:
- POSTGRES_DB=mydb
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- PGDATA=/app_db
ports:
- "5432:5432"
volumes:
- ./app_db:/app_db
networks:
- db_net
db_client:
image: adminer
# restart: always
ports:
- "8080:8080"
networks:
- db_net
networks:
db_net: