-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (73 loc) · 2.05 KB
/
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
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
version: '3'
services:
postgres:
image: postgres:latest
environment:
POSTGRES_DB: ${BACKEND_DB_NAME}
POSTGRES_USER: ${BACKEND_DB_USER}
POSTGRES_PASSWORD: ${BACKEND_DB_PASSWORD}
refuapp-backend:
build:
context: ./refuapp-backend # Path to your project directory
dockerfile: Dockerfile
external_links:
- postgres:docker-mysql
environment:
DB_NAME: ${BACKEND_DB_NAME}
DB_USER: ${BACKEND_DB_USER}
DB_PASSWORD: ${BACKEND_DB_PASSWORD}
DB_PORT: ${BACKEND_DB_PORT}
DB_HOST: docker-mysql
JWT_KEY: ${BACKEND_JWT_KEY}
ADMIN_NAME: ${BACKEND_ADMIN_NAME}
ADMIN_PASSWORD: ${BACKEND_ADMIN_PASSWORD}
SUPERVISOR_NAME: ${BACKEND_SUPERVISOR_NAME}
SUPERVISOR_PASSWORD: ${BACKEND_SUPERVISOR_PASSWORD}
depends_on:
- postgres
refuapp-frontend:
build:
context: ./refuapp-frontend # Path to your project directory
dockerfile: Dockerfile
args:
- MAPS_API_KEY=${FRONTEND_MAPS_API_KEY}
depends_on:
- refuapp-backend
refuapp-admin-frontend:
build:
context: ./refuapp-admin
dockerfile: Dockerfile
args:
- BACKEND_URL=${FRONTEND_API_URL}
depends_on:
- refuapp-backend
refuapp-supervisor-frontend:
build:
context: ./refuapp-supervisor
dockerfile: Dockerfile
args:
- BACKEND_URL=${FRONTEND_API_URL}
depends_on:
- refuapp-backend
sensors_db:
image: postgres:latest
environment:
POSTGRES_DB: ${SENSORS_DB_NAME}
POSTGRES_USER: ${SENSORS_DB_USER}
POSTGRES_PASSWORD: ${SENSORS_DB_PASS}
refuapp-sensor-backend:
build:
context: ./refuge-sensor-server/
dockerfile: Dockerfile
external_links:
- sensors_db:docker-mysql
environment:
DB_NAME: ${SENSORS_DB_NAME}
DB_USER: ${SENSORS_DB_USER}
DB_PASS: ${SENSORS_DB_PASS}
DB_HOST: docker-mysql
DB_PORT: ${SENSORS_DB_PORT}
REFUGE_ID: ${SENSORS_REFUGE_ID}
REFUGE_PASSWORD: ${SENSORS_REFUGE_PASSWORD}
depends_on:
- sensors_db