-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
44 lines (41 loc) · 960 Bytes
/
docker-compose.yaml
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
version: '3.7'
services:
app:
image: not-so-bigquery
build:
context: .
depends_on:
- postgres
environment:
NODE_ENV: development
PORT: "8080"
HTTPS: ~
HOSTNAME: 0.0.0.0
POSTGRES_HOST: 'postgres'
POSTGRES_PORT: 5432
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
command: npm run start:dev
volumes:
- ./:/code
- /code/node_modules
ports:
- 5443:8080
postgres:
image: postgres_15-plv8_3
platform: linux/arm64
restart: always
build:
context: .
dockerfile: Dockerfile.postgres
shm_size: '4gb'
volumes:
- db-data:/var/lib/postgresql/data
- ./docker/postgres/init_db:/docker-entrypoint-initdb.d
environment:
POSTGRES_PASSWORD: 'postgres'
ports:
- 5532:5432
command: ["postgres", "-c", "log_min_messages=NOTICE", "-c", "client_min_messages=NOTICE"]
volumes:
db-data: ~