-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 925 Bytes
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
version: '3.1'
services:
server:
container_name: server
build:
context: .
dockerfile: Dockerfile
ports:
- 9000:9000
environment:
LOG_LEVEL: trace
depends_on:
db:
condition: service_healthy
serverless:
container_name: serverless
build:
context: .
dockerfile: Dockerfile.serverless
ports:
- 9001:8080
environment:
LOG_LEVEL: trace
db:
container_name: db
image: postgres
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
ports:
- 5432:5432
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: auth
volumes:
- ./migrations:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 30s