-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
45 lines (44 loc) · 915 Bytes
/
docker-compose.prod.yml
File metadata and controls
45 lines (44 loc) · 915 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
services:
migrate:
build:
context: .
dockerfile: apps/api/Dockerfile
target: migrate
container_name: aido-prod-migrate
env_file:
- .env.docker.prod
restart: "no"
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"
api:
build:
context: .
dockerfile: apps/api/Dockerfile
target: production
container_name: aido-prod-api
ports:
- "${PORT:-8080}:8080"
environment:
TZ: Asia/Seoul
env_file:
- .env.docker.prod
depends_on:
migrate:
condition: service_completed_successfully
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
cpus: "1"
reservations:
memory: 128M
cpus: "0.25"
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"