-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcompose.yaml
58 lines (52 loc) · 1.01 KB
/
compose.yaml
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
version: '3.9'
networks:
internalNet:
name: internalNet
volumes:
database:
name: database
images:
name: images
services:
postgres:
image: postgres:16-bookworm
restart: "on-failure"
container_name: postgres
env_file: .env
networks:
- internalNet
ports:
- target: 5432
published: 5432
volumes:
- database:/var/lib/postgresql/data
shm_size: 128mb
server:
build: ./server
container_name: server
restart: "on-failure"
env_file: .env
ports:
- target: 3000
published: 3000
networks:
- internalNet
volumes:
- images:/home/Backend/upload/
depends_on:
postgres:
condition: service_started
client:
build: ./client
container_name: client
restart: "on-failure"
ports:
- target: 8080
published: 8080
networks:
- internalNet
depends_on:
postgres:
condition: service_started
server:
condition: service_started