forked from GCU-Sharpic/sharpic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-cuda.yml
104 lines (96 loc) · 2.19 KB
/
docker-compose-cuda.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.8'
volumes:
user_data:
minio_data:
services:
postgresql:
image: postgres
volumes:
- user_data:/var/lib/postgresql/data
- ./server/initdb:/docker-entrypoint-initdb.d
restart: always
environment:
POSTGRES_PASSWORD: sharpgcu75!!
POSTGRES_DB: Sharpic
TZ: Asia/Seoul
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 5s
retries: 5
server:
build:
context: ./server
dockerfile: ./Dockerfile
environment:
POSTGRES_DB: Sharpic
POSTGRES_HOST: postgresql
POSTGRES_USER: postgres
POSTGRES_PASSWORD: sharpgcu75!!
JWT_TOKEN_LIFESPAN: 6
JWT_SECRET: sharpgcu75!!
MINIO_HOST: minio:9000
MINIO_ACCESS_ID: minio
MINIO_ACCESS_PW: sharpgcu75!!
restart: always
depends_on:
postgresql:
condition: service_healthy
minio:
condition: service_healthy
imagesr:
build:
context: ./imagesr
dockerfile: ./cuda.Dockerfile
devices:
- "/dev/kfd:/dev/kfd"
- "/dev/dri:/dev/dri"
security_opt:
- seccomp:unconfined
group_add:
- video
shm_size: 8G
depends_on:
postgresql:
condition: service_healthy
minio:
condition: service_started
server:
condition: service_started
environment:
HOST: postgresql
DATABASE: Sharpic
USER_SQL: postgres
PASS: sharpgcu75!!
PORT: 5432
MINIO_HOST: minio:9000
MINIO_ACCESS_ID: minio
MINIO_ACCESS_PW: sharpgcu75!!
restart: always
minio:
image: minio/minio:latest
command: ["server", "/data", "--console-address", ":9001"]
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: sharpgcu75!!
ports:
- 9000:9000
- 9001:9001
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
restart: always
web:
build:
context: ./web
dockerfile: ./Dockerfile
restart: always
depends_on:
- postgresql
- imagesr
ports:
- 8007:80