-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (56 loc) · 1.36 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
version: "3.9"
volumes:
mariadb-data: {}
services:
database:
build: ./docker-maria
image: mariadb-server:v1.0
volumes:
- mariadb-data:/var/lib/mysql
ports:
- '3306:3306'
# environment:
# env_file: # all env variables are inside proper dockerfile
server:
build: ./docker-flask
image: flask-server:v1.0
ports:
- '5555:5555' # change 2nd one to change backend listening port
depends_on:
- "database"
# environment:
# env_file: # all env variables are inside proper dockerfile
frontend:
build: ./docker-react
image: react-app:v1.0
ports:
- '8081:8081' # change 2nd one to change frontend listening port
depends_on:
- "server"
# environment:
# env_file: # all env variables are inside proper dockerfile
#------HOW TO RUN------
#
# Increase RAM allocation for docker (e.g. using Docker Desktop) to at least 4GB
#
# docker compose up -d --build
#
#------------
#------HOW TO ACCESS------
#
# database defaults:
# host: localhost
# schema: sara
# user: rescuer
# pass: ---FIXME---
#
# backend defaults:
# host: http://localhost:5555/
# user: ---FIXME--- pass: ---FIXME---
# user: ---FIXME--- pass: ---FIXME---
# (recomended use of prepared postman collection)
#
# frontend defaults:
# host: http://localhost:8081/
# user: ---FIXME--- pass: ---FIXME---
#