-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose_temp.yaml
More file actions
52 lines (45 loc) · 965 Bytes
/
compose_temp.yaml
File metadata and controls
52 lines (45 loc) · 965 Bytes
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
version: '3.9'
services:
backend:
build:
context: .
target: builder
container_name: livinglab-APIs
volumes:
- ./APIs:/home/APIs
ports:
- '8002:8000'
db:
# We use a mariadb image which supports both amd64 & arm64 architecture
#image: mariadb:10.6.4-focal
# If you really want to use MySQL, uncomment the following line
image: mysql:8.0.19
container_name: livinglab-db
environment:
- MYSQL_DATABASE=example
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password
secrets:
- db-password
volumes:
- ./db:/home/db-data
frontend:
build:
context: frontend
target: development
container_name: livinglab-frontend
ports:
- 3005:3000
volumes:
- ./frontend:/code/src
networks:
- living
expose:
- 3308
- 33080
volumes:
db-data: {}
secrets:
db-password:
file: db/password.txt
networks:
living: {}