-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_armv7l.yml
81 lines (76 loc) · 1.63 KB
/
docker-compose_armv7l.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3'
services:
irk_db:
image: arm32v7/postgres:10.5
container_name: irk_db
ports:
- "5432:${DATABASE_PORT}"
volumes:
- $VOLUME_DIR/irk_db:/var/lib/postgresql/data
restart: always
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
irk_webservice:
container_name: irk_webservice
depends_on:
- irk_db
build:
context: ../IoT_ready_Kit_Webservice
dockerfile: Dockerfile_armv7l
# ports:
# - "5000:5000"
volumes:
- $VOLUME_DIR/irk_webservice:/usr/src/app/conf
restart: always
environment:
- DATABASE_USER
- DATABASE_PASSWORD
- DATABASE_PORT
- DATABASE_HOSTNAME
- DATABASE_NAME
- DATABASE_DIALECT
- DEBUG_MODE
irk_nginx:
container_name: irk_nginx
image: nginx:1.15.5
depends_on:
- irk_webservice
ports:
- 5000:5000
restart: always
volumes:
- $VOLUME_DIR/irk_nginx:/etc/nginx/
irk:
container_name: irk
depends_on:
- irk_db
build:
context: ./
dockerfile: Dockerfile_armv7l
ports:
- "4840:4840"
volumes:
- $VOLUME_DIR/irk:/usr/src/app/conf
networks:
pub_net:
ipv4_address: 192.168.1.20
default:
restart: always
environment:
- DATABASE_USER
- DATABASE_PASSWORD
- DATABASE_PORT
- DATABASE_HOSTNAME
- DATABASE_NAME
- DATABASE_DIALECT
- DEBUG_MODE
networks:
pub_net:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 192.168.1.0/24