-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docker): move common parts to docker-compose.yml
- Loading branch information
1 parent
4009ca6
commit f03f834
Showing
7 changed files
with
72 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,12 @@ | |
|
||
This repository contains all the services you need for running an instance of RefuApp! | ||
|
||
## Running Locally 🏠🚀 | ||
## Running Locally 💻🚀 | ||
You can run refuapp locally with docker compose with the following command: | ||
|
||
```shell | ||
docker-compose -f docker-compose-local.yml up -d --build | ||
git clone --recursive [email protected]:RefuAPP/refuapp.git | ||
docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d --build | ||
``` | ||
|
||
## Deploy 🌎💫 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3' | ||
services: | ||
|
||
refuapp-backend: | ||
ports: | ||
- "8000:8000" | ||
|
||
refuapp-frontend: | ||
build: | ||
args: | ||
- BACKEND_URL=http://localhost:8000 | ||
ports: | ||
- '80:80' | ||
|
||
refuapp-admin-frontend: | ||
build: | ||
args: | ||
- BACKEND_URL=http://localhost:8000 | ||
ports: | ||
- '81:80' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: '3' | ||
services: | ||
|
||
refuapp-frontend: | ||
build: | ||
args: | ||
- BACKEND_URL=${FRONTEND_API_URL} | ||
|
||
refuapp-admin-frontend: | ||
build: | ||
args: | ||
- BACKEND_URL=${FRONTEND_API_URL} | ||
|
||
postgres: | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data | ||
|
||
nginxproxymanager: | ||
image: 'jc21/nginx-proxy-manager:latest' | ||
container_name: nginxproxymanager | ||
restart: unless-stopped | ||
ports: | ||
- '80:80' | ||
- '81:81' | ||
- '443:443' | ||
volumes: | ||
- ./proxy-manager/data:/data | ||
- ./proxy-manager/letsencrypt:/etc/letsencrypt | ||
|
||
sensors_db: | ||
volumes: | ||
- postgres_sensor_data:/var/lib/postgresql/data | ||
|
||
volumes: | ||
postgres_data: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
device: /home/ferran/data | ||
o: bind | ||
postgres_sensor_data: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
device: /home/ferran/data-sensors | ||
o: bind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters