-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
51 lines (48 loc) · 1.22 KB
/
Copy pathcompose.yaml
File metadata and controls
51 lines (48 loc) · 1.22 KB
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
services:
db:
image: postgis/postgis:16-3.4-alpine
environment:
POSTGRES_DB: shareloop
POSTGRES_USER: shareloop
POSTGRES_PASSWORD: shareloop
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U shareloop"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- pg-data:/var/lib/postgresql/data
- ./server/db/init:/docker-entrypoint-initdb.d
server:
build: ./server
ports:
- "4000:4000"
environment:
DATABASE_URL: postgresql+asyncpg://shareloop:shareloop@db:5432/shareloop
UPLOADS_DIR: /uploads
SEEDING_DIR: /seeding
depends_on:
db:
condition: service_healthy
volumes:
- uploads-data:/uploads
# WARNING: Seeding is a DEVELOPMENT feature.
# Mounting valid seeding data enables the seeding
# feature and allows anyone to reset the database.
#
# Do NOT use this in production — remove this bind mount
# from a production deployment.
- ./server/seeding:/seeding
app:
build: ./app
# environment:
# API_BASE_URL: http://localhost:8080/api
ports:
- "8080:80"
depends_on:
- server
volumes:
pg-data:
uploads-data: