-
Notifications
You must be signed in to change notification settings - Fork 0
/
share.yml
71 lines (66 loc) · 1.69 KB
/
share.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
services:
share-web:
container_name: share-web
build:
context: .
dockerfile: ./apps/share-web/Dockerfile
restart: always
ports:
- 4000:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- DEBUG=true
- STATIC_ENABLED=true
- STATIC_RULES=
*,^/trpc/(.*),http://share-api:4001/trpc/$1;
*,^/storage/(.*),http://share-api:4001/storage/$1;
depends_on:
- share-api
share-api:
container_name: share-api
build:
context: .
dockerfile: ./apps/share-api/Dockerfile
restart: always
environment:
- STORAGE_PATH=/mnt/images
- CACHE_PATH=/mnt/cache
- REDDIS_HOST=redis
- REDDIS_PORT=6379
- DATABASE_URL=postgresql://postgres:devpass@db:5432/postgres?schema=public
volumes:
- cache-thumbnails:/mnt/cache/thumbnails
depends_on:
db:
condition: service_started
redis:
condition: service_started
prisma-migrate:
condition: service_completed_successfully
prisma-migrate:
container_name: prisma-migrate
build:
context: .
dockerfile: ./packages/database/Dockerfile
restart: "no"
environment:
- DATABASE_URL=postgresql://postgres:devpass@db:5432/postgres?schema=public
depends_on:
- db
db:
container_name: db
image: postgres:15-alpine
restart: always
environment:
- POSTGRES_PASSWORD=devpass
volumes:
- db-data:/var/lib/postgresql/data
- ./config/postgresql.conf:/var/lib/postgresql/data/postgresql.conf
redis:
container_name: redis
image: redis:7-alpine
restart: always
volumes:
db-data: {}
cache-thumbnails: {}