-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
57 lines (52 loc) · 1.3 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
# docker-compose.yml
version: '3.9'
services:
webapp:
build:
context: .
dockerfile: packages/webapp/Dockerfile
container_name: docker-next
depends_on:
- backend
ports:
- '3000:3000'
volumes:
- .:/app
- /app/node_modules
postgres:
container_name: postgres
image: postgres:14.5
env_file:
- packages/hocuspocus.server/.env
environment:
POSTGRES_USER: '${PG_USER:-pgUser}'
POSTGRES_PASSWORD: '${PG_PASSWORD:-pgPW}'
POSTGRES_DB: '${PG_DB:-docsplus}'
volumes:
- database-data:/var/lib/postgresql/data/
restart: always
ports:
- '${PG_PORT:-5432}:5432'
redis-server:
image: redis:alpine
restart: unless-stopped
backend:
build:
context: ./packages/hocuspocus.server
dockerfile: Dockerfile
env_file:
- packages/hocuspocus.server/.env
restart: always
depends_on:
- redis-server
- postgres
environment:
REDIS_HOST: redis-server
PG_SERVER: postgres
DATABASE_URL: 'postgresql://${PG_USER:-pgUser}:${PG_PASSWORD:-pgPW}@postgres/${PG_DB:-docsplus}?schema=public'
ports:
- '${EXPOSE_APP_PORT:-2300}:${APP_PORT:-2300}'
- '${HOCUSPOCUS_PORT:-1234}:${HOCUSPOCUS_PORT:-1234}'
volumes:
database-data:
name: docsplus_data