-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
56 lines (55 loc) · 1.16 KB
/
compose.yaml
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
55
56
version: '3.9'
services:
postgres:
container_name: postgres
image: postgres:latest
restart: always
secrets:
- db-password
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_USER=postgres
- POSTGRES_DB=core_db
- PGDATA=/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
core:
container_name: blog-core
image: core-server:latest
build:
context: ./core/
dockerfile: Dockerfile
target: final
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_USER=postgres
- POSTGRES_DB=core_db
ports:
- 4443:8080
secrets:
- db-password
depends_on:
- postgres
links:
- postgres
app:
container_name: blog-app
image: ayzblog-app:latest
build:
context: ./app/
dockerfile: Dockerfile
environment:
- REACT_APP_API_URL=https://thecapableone.ayzminy.blog/
ports:
- 8888:8888
depends_on:
- core
- postgres
secrets:
db-password:
file: db_secrets.txt