-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
78 lines (73 loc) · 1.9 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
api:
build:
context: ./api
target: dev
working_dir: /var/www/html/api
environment:
HOMOCHECKER_AP_ACTOR_ID: http://localhost/actor
HOMOCHECKER_AP_ACTOR_PREFERRED_USERNAME: localhost
HOMOCHECKER_AP_ACTOR_PUBLIC_KEY: /activity_pub_actor.pub
HOMOCHECKER_AP_ACTOR_PRIVATE_KEY: /activity_pub_actor.key
HOMOCHECKER_DB_HOST: database
HOMOCHECKER_DB_USERNAME: homo
HOMOCHECKER_DB_PASSWORD: homo
HOMOCHECKER_LOG_LEVEL: debug
configs:
- source: activity_pub_actor_public_key
target: activity_pub_actor.pub
- source: activity_pub_actor_private_key
target: activity_pub_actor.key
volumes:
- type: bind
source: ./api
target: /var/www/html/api
build:
build:
context: .
target: dev
working_dir: /usr/src/app/client
command: yarn watch
environment:
HOMOCHECKER_ENV: "${HOMOCHECKER_ENV-development}"
volumes:
- type: bind
source: .
target: /usr/src/app
client:
image: nginx:1.27
ports:
- "${HOMOCHECKER_PORT-4545}:80"
environment:
HOMOCHECKER_API_HOST: api
volumes:
- type: bind
source: ./client/dist
target: /var/www/html
read_only: true
- type: bind
source: ./client/conf
target: /etc/nginx/templates
read_only: true
database:
image: postgres:16.4
environment:
POSTGRES_DB: homo
POSTGRES_USER: homo
POSTGRES_PASSWORD: homo
volumes:
- type: bind
source: ./database
target: /docker-entrypoint-initdb.d
read_only: true
- type: volume
source: database
target: /var/lib/postgresql/data
configs:
activity_pub_actor_public_key:
file: ./api/activity_pub_actor.pub
activity_pub_actor_private_key:
file: ./api/activity_pub_actor.key
volumes:
database:
driver: local