-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 1019 Bytes
/
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
services:
ladesa-api:
build:
context: .
target: base
user: node
command: sh -c "corepack install; sleep infinity"
container_name: ladesa-api
# working_dir: /workspaces/ldsa/api/api-service/
working_dir: /workspaces/ldsa/api/
depends_on:
- ladesa-api-db
networks:
- ladesa-net
ports:
- 3701:3701
- 9229:9229
volumes:
- ./:/workspaces/ldsa/api:cached
- ./api-service/volumes/uploaded:/container/uploaded
environment:
- STORAGE_PATH=/container/uploaded
env_file:
- .env
ladesa-api-db:
image: bitnami/postgresql:15
container_name: ladesa-api-db
volumes:
- "ladesa-api-db-data:/bitnami/postgresql"
# - './volumes/db/scripts/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
networks:
- ladesa-net
ports:
- 127.0.0.1:5432:5432
env_file:
- .db.env
networks:
ladesa-net:
external: true
volumes:
ladesa-api-db-data:
ladesa-api-uploaded-files: