-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.12 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
52
version: '3.7'
services:
micronaut-api:
build:
context: .
image: rbarbioni/micronaut-api
environment:
- JAVA_OPTS=-server -XX:+UseG1GC -Xss256k -Xms128m -Xmx256m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
- JDBC_URL=jdbc:postgresql://db:5432/api
- JDBC_DRIVER=org.postgresql.Driver
- JDBC_USER=api
- JDBC_PASS=api
- SENTRY_DSN=${SENTRY_DSN}
- ENV=docker
ports:
- "5005:5005"
- "8080:8080"
depends_on:
- db
links:
- db
deploy:
replicas: 1
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.5'
memory: 256M
restart_policy:
condition: on-failure
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: api
POSTGRES_PASSWORD: api
POSTGRES_DB: api
deploy:
replicas: 1
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.5'
memory: 256M
restart_policy:
condition: on-failure