This repository was archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-deploy.yaml
73 lines (67 loc) · 1.84 KB
/
docker-compose-deploy.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
version: '2.2'
services:
frontend:
build:
context: ./assets
dockerfile: ./Dockerfile
args:
ALLOY_API_KEY: ${ALLOY_API_KEY}
FE_BE_HOST: ${BE_HOST:-$DOMAIN:5004}
FISHJAM_ROOM_VERSION: ${FISHJAM_ROOM_VERSION}
FISHJAM_VERSION: ${FISHJAM_VERSION}
container_name: frontend
restart: unless-stopped
depends_on:
- backend
ports:
- "127.0.0.1:5005:5005"
backend:
build:
context: .
dockerfile: ./Dockerfile
container_name: backend
environment:
BE_PORT: 5004
BE_HOST: ${BE_HOST:-$DOMAIN}
BE_PHX_SERVER: "true"
BE_JF_SECURE_CONNECTION: ${BE_JF_SECURE_CONNECTION:-false}
BE_JF_SERVER_API_TOKEN: ${JF_SERVER_API_TOKEN}
BE_JF_ADDRESS: ${BE_JF_ADDRESS}
restart: unless-stopped
ports:
- "127.0.0.1:5004:5004"
grafana:
build:
context: ./infra/grafana/
dockerfile: Dockerfile
container_name: grafana
ports:
- "127.0.0.1:3000:3000"
environment:
GF_SECURITY_ADMIN_PASSWORD: "${GF_SECURITY_ADMIN_PASSWORD}"
GF_SECURITY_ADMIN_USER: "${GF_SECURITY_ADMIN_USER}"
GF_SERVER_ROOT_URL: "http://${DOMAIN}/grafana"
loki:
build:
context: ./infra/loki/
dockerfile: Dockerfile
container_name: loki
command: -config.file=/etc/loki/local-config.yaml
volumes:
- loki-data:/loki
grafana-alloy:
build:
context: ./infra/alloy/
dockerfile: Dockerfile
container_name: alloy
environment:
- ALLOY_API_KEY=${ALLOY_API_KEY}
- AGENT_PORT_APP_RECEIVER=${AGENT_PORT_APP_RECEIVER:-8027}
entrypoint:
- '/bin/alloy'
- 'run'
- '--server.http.listen-addr=127.0.0.1:12345'
- '--config.extra-args="-config.expand-env"'
- '${ALLOY_CONFIG_PATH:-/etc/alloy}/${ALLOY_CONFIG_FILE:-config.alloy}'
volumes:
loki-data: