-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.dev.yml
95 lines (91 loc) · 2.2 KB
/
compose.dev.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
apiserver:
container_name: clip-apiserver-dev
image: clip/apiserver:debug
entrypoint: /bin/sh ./apiserver.sh
command: dev
working_dir: /apiserver
build:
context: ./apiserver
target: apiserver-base
network: host
env_file:
- path: .env
required: true
ports:
- ${CLIP_APISERVER_PORT}:${CLIP_APISERVER_PORT}
- 5678:5678
volumes:
- ./apiserver:/apiserver
spa:
container_name: clip-spa-dev
image: clip/spa:debug
entrypoint: /bin/sh ./spa.sh
command: dev
working_dir: /spa
build:
context: ./spa
target: spa-base
network: host
env_file:
- path: .env
required: true
ports:
- 4200:4200
- 9222:9222
volumes:
- ./spa:/spa
agent:
container_name: clip-agent-dev
image: clip/agent:debug
entrypoint: /bin/sh ./agent.sh
command: dev
working_dir: /agent
user: ${UID}:${GID}
build:
context: ./agent
target: agent-base
network: host
env_file:
- path: .env
required: true
environment:
- HOME=/agent/.sdk
volumes:
- ./agent:/agent
pgadmin:
image: dpage/pgadmin4
container_name: clip-dev-pgadmin4
ports:
- 8888:80
environment:
PGADMIN_DEFAULT_EMAIL: ${POSTGRESQL_USER}@clip.dev
PGADMIN_DEFAULT_PASSWORD: ${POSTGRESQL_PASSWORD}
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
entrypoint: /bin/sh -c "chmod 600 /pgpass; /entrypoint.sh;"
user: root
configs:
- source: servers.json
target: /pgadmin4/servers.json
- source: pgpass
target: /pgpass
configs:
pgpass:
content: ${POSTGRESQL_HOST}:${POSTGRESQL_PORT}:*:${POSTGRESQL_USER}:${POSTGRESQL_PASSWORD}
servers.json:
content: |
{
"Servers": {
"1": {
"Group": "Servers",
"Name": "My Local Postgres 16.1",
"Host": "${POSTGRESQL_HOST}",
"Port": ${POSTGRESQL_PORT},
"MaintenanceDB": "clip",
"Username": "${POSTGRESQL_USER}",
"PassFile": "/pgpass",
"SSLMode": "prefer"
}
}
}