Repository navigation
Expand file tree
/
Copy pathdocker-compose.demo.yml
More file actions
86 lines (81 loc) · 2.27 KB
/
Copy pathdocker-compose.demo.yml
File metadata and controls
86 lines (81 loc) · 2.27 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
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
services:
db:
image: postgres:17-alpine
container_name: db
restart: always
environment:
POSTGRES_DB: ${DB_NAME:-gauzy}
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASS:-gauzy_password}
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB} || exit 1']
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./.deploy/db/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
ports:
- '5432:5432'
networks:
- overlay
api:
container_name: api
image: ghcr.io/ever-co/gauzy-api:latest
environment:
NODE_ENV: ${NODE_ENV:-development}
# Off by default: 'true' prints sign-in codes and email links on the API console (loopback base URLs only).
# To turn it on for a local run: PRINT_EMAIL_CODES=true docker compose -f docker-compose.demo.yml up
PRINT_EMAIL_CODES: ${PRINT_EMAIL_CODES:-false}
DB_HOST: db
MAKE_WEBHOOK_URL: ${MAKE_WEBHOOK_URL:-}
env_file:
- .env.demo.compose
entrypoint: './entrypoint.compose.sh'
command: ['node', 'main.js']
restart: on-failure
depends_on:
db:
condition: service_healthy
links:
- db:${DB_HOST:-db}
# volumes:
# - webapp_node_modules:/srv/gauzy/node_modules
# - api_node_modules:/srv/gauzy/apps/api/node_modules
ports:
- '3000:${API_PORT:-3000}'
networks:
- overlay
webapp:
container_name: webapp
image: ghcr.io/ever-co/gauzy-webapp:latest
environment:
NODE_ENV: ${NODE_ENV:-development}
SENTRY_PROFILE_SAMPLE_RATE: ${SENTRY_PROFILE_SAMPLE_RATE:-1}
DEMO: 'true'
entrypoint: './entrypoint.compose.sh'
command: ['nginx', '-g', 'daemon off;']
env_file:
- .env.demo.compose
restart: on-failure
links:
- db:${DB_HOST:-db}
- api:${API_HOST:-api}
depends_on:
db:
condition: service_healthy
api:
condition: service_started
# volumes:
# - webapp_node_modules:/srv/gauzy/node_modules
ports:
- '4200:${UI_PORT:-4200}'
networks:
- overlay
volumes:
# webapp_node_modules:
# api_node_modules:
postgres_data: {}
networks:
overlay:
driver: bridge