-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (51 loc) · 1.16 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
version: "3.3"
services:
postgres:
image: postgres
restart: unless-stopped
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- type: bind
source: ./postgres-data
target: /var/lib/postgresql/data
networks:
- reference
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 10s
retries: 6
server:
ports:
- "8080:80"
- "9229:9229"
environment:
NO_SSL: true
DEVELOPMENT: true
DATABASE_URL: postgresql://postgres:test@postgres:5432/postgres
TESTING_UNIT: ${TESTING_UNIT:-false}
TESTING_E2E: ${TESTING_E2E:-false}
DB_RESET: ${DB_RESET:-false}
depends_on:
postgres:
condition: service_healthy
build: .
develop:
watch:
- action: sync
path: ./server/
target: /app/server/
ignore:
- node_modules/
- action: rebuild
path: server/package.json
networks:
- reference
networks:
reference: