-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-remote.yml
61 lines (56 loc) · 1.33 KB
/
docker-compose-remote.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
version: '3.8'
services:
db:
image: postgres:12-alpine
container_name: postgres_db
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "5432"
volumes:
- db_data:/var/lib/postgresql/data
env_file:
- .env
restart: always
ui:
image: docker.io/strongmonkey1992/copliot-ui:v0.0.1
ports:
- "3000"
restart: always
server:
image: docker.io/strongmonkey1992/copliot-server:v0.0.1
ports:
- "8080"
restart: always
environment:
MICROSOFT_CLIENT_ID: ${MICROSOFT_CLIENT_ID}
MICROSOFT_CLIENT_SECRET: ${MICROSOFT_CLIENT_SECRET}
MICROSOFT_JWT_KEY: ${MICROSOFT_JWT_KEY}
MICROSOFT_TENANT_ID: ${MICROSOFT_TENANT_ID}
PG_DBNAME: ${DB_NAME}
PG_HOST: ${DB_HOST}
PG_USER: ${DB_USER}
PG_PASSWORD: ${DB_PASSWORD}
PUBLIC_URL: ${PUBLIC_URL}
UI_SERVER: ${UI_SERVER}
OPENAI_API_KEY: ${OPENAI_API_KEY}
DEFAULT_MODEL: ${DEFAULT_MODEL}
env_file:
- .env
caddy:
image: caddy:latest
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
volumes:
db_data:
caddy_data:
caddy_config: