forked from dedevpradev/faladev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (72 loc) · 1.69 KB
/
docker-compose.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
services:
postgres:
image: postgres:13
container_name: postgres
environment:
POSTGRES_USER: userpostgres
POSTGRES_PASSWORD: passwordpostgres
POSTGRES_DB: faladev
ports:
- '5432:5432'
volumes:
- postgres-data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- '5050:80'
volumes:
- ./servers.json:/pgadmin4/servers.json
jaeger:
image: jaegertracing/all-in-one:1.31
container_name: jaeger
ports:
- '5775:5775/udp'
- '6831:6831/udp'
- '6832:6832/udp'
- '5778:5778'
- '16686:16686'
- '14268:14268'
- '14250:14250'
- '9411:9411'
backend:
build:
context: .
dockerfile: ./Dockerfile
container_name: faladev
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: userpostgres
DB_PASSWORD: passwordpostgres
DB_NAME: faladev
DATABASE_URL: postgres://userpostgres:passwordpostgres@postgres:5432/faladev?sslmode=disable
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
ports:
- '8080:8080'
volumes:
- ./backend:/app/backend
- ./frontend/build:/app/frontend/build
depends_on:
- postgres
- jaeger
frontend:
image: node:20-alpine
container_name: frontend
working_dir: /app
command: sh -c "npm install && npm run dev"
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- '3000:3000'
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
postgres-data: