-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
52 lines (52 loc) · 1.41 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
---
volumes:
postgres-data:
driver: "local"
services:
postgres:
build:
dockerfile: ./Dockerfile
context: postgres
cache_from:
- ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/postgres:${TAG_NAME}
- ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/postgres
args:
BUILDKIT_INLINE_CACHE: 1
x-bake:
platforms:
- linux/amd64
- linux/arm64
image: ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/postgres:${TAG_NAME}
environment:
POSTGRES_PASSWORD: password
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
- type: bind
source: ./postgres/docker-entrypoint-initdb.d
target: /docker-entrypoint-initdb.d
ports:
- 5432:5432
hato-bot:
build:
dockerfile: ./Dockerfile
context: .
cache_from:
- ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/hato-bot:${TAG_NAME}
- ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/hato-bot
- ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/commit-hash:${TAG_NAME}
- ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/commit-hash
args:
BUILDKIT_INLINE_CACHE: 1
x-bake:
platforms:
- linux/amd64
image: ghcr.io/${REPOSITORY:-dev-hato/hato-bot}/hato-bot:${TAG_NAME}
env_file:
- .env
restart: always
ports:
- 3000:3000
depends_on:
postgres:
condition: service_healthy