-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
54 lines (53 loc) · 1.26 KB
/
docker-compose-prod.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
53
54
version: "3.9"
services:
postgresql:
container_name: "postgresql"
image: postgres:13.3
environment:
POSTGRES_DB: "goland"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "ienuShiavahZaeh0"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- ../2. Init Database:/docker-entrypoint-initdb.d
- .:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
logging:
driver: "gcplogs"
options:
gcp-log-cmd: "true"
gcp-project: pyproject-334209
env: PROD
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
logging:
driver: "gcplogs"
options:
gcp-log-cmd: "true"
gcp-project: pyproject-334209
env: PROD
# healthcheck:
# test: [ "CMD", "curl", "-f", "http://0.0.0.0:80/" ]
# interval: 30s
# timeout: 20s
networks:
default:
name: "goland-bridge"
# external: true