-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
128 lines (123 loc) · 3.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
128 lines (123 loc) · 3.42 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
services:
app:
container_name: web
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- DATABASE_HOST=${DATABASE_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- DATABASE_URL=${DATABASE_URL}
- TEST_DATABASE_URL=${TEST_DATABASE_URL}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- S3_BUCKET=${S3_BUCKET}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
tty: true
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- '3000:3000'
entrypoint: [ "CompileDaemon", "--build=make build", "--command=./bin/api -smtp-host=localhost -smtp-port=1025 -smtp-username= -smtp-password= -metrics=true" ]
restart: on-failure
volumes:
- .:/app
depends_on:
- db
extra_hosts:
- "localhost:172.17.0.1"
db:
image: postgres:latest
container_name: postgres_container
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- DATABASE_HOST=${DATABASE_HOST}
ports:
- '5432:5432'
volumes:
- ./db/sql/databases.sql:/docker-entrypoint-initdb.d/1.databases.sql
- ./db/sql/seeds.sql:/tmp/seeds.sql
mailhog:
image: mailhog/mailhog:latest
restart: always
ports:
- '1025:1025'
- '8025:8025'
frontend:
image: node:alpine
working_dir: /app/frontend
volumes:
- ./frontend:/app/frontend
command: sh -c "npm ci && npm run dev -- --host"
ports:
- "5173:5173"
depends_on:
- app
dozzle:
image: amir20/dozzle:latest
container_name: dozzle
restart: unless-stopped
ports:
- "127.0.0.1:9999:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# prometheus:
# image: prom/prometheus:latest
# container_name: prometheus
# volumes:
# - ./observability/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
# depends_on:
# - app
# - frontend
# restart: unless-stopped
#
# loki:
# image: grafana/loki:latest
# container_name: loki
# command:
# - "-config.file=/etc/loki/config.yml"
# volumes:
# - ./observability/loki:/etc/loki:ro
# restart: unless-stopped
#
# alloy:
# image: grafana/alloy:latest
# container_name: alloy
# command:
# - "run"
# - "/etc/alloy/config.alloy"
# - "--server.http.listen-addr=0.0.0.0:12345"
# volumes:
# - ./observability/alloy/config.alloy:/etc/alloy/config.alloy:ro
# - /var/run/docker.sock:/var/run/docker.sock:ro
# depends_on:
# - loki
# restart: unless-stopped
#
# grafana:
# image: grafana/grafana:latest
# container_name: grafana
# ports:
# - "127.0.0.1:3001:3000"
# environment:
# - GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER}
# - GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
# - GF_USERS_ALLOW_SIGN_UP=false
# - GF_AUTH_ANONYMOUS_ENABLED=false
# volumes:
# - ./observability/grafana/provisioning:/etc/grafana/provisioning
# - ./observability/grafana/dashboards:/var/lib/grafana/dashboards
# depends_on:
# - prometheus
# - loki
# restart: unless-stopped