-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
47 lines (44 loc) · 1.02 KB
/
docker-compose-local.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
version: "3.9"
services:
postgresql:
container_name: "postgresql"
image: postgres:13.3
environment:
POSTGRES_DB: "goland"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- ../2. Init Database:/docker-entrypoint-initdb.d
- .:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin -d goland"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1'
memory: 2G
monolith:
container_name: einstein-server
image: ghcr.io/aevsai/einstein-server:latest
restart: always
env_file:
- .env
environment:
DB_HOST: postgresql
DB_PORT: 5432
DB_USER: "admin"
DB_PASSWORD: "admin"
DB_NAME: "goland"
ports:
- "127.0.0.1:8080:8080"
networks:
default:
name: "goland-bridge"