-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (61 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
67 lines (61 loc) · 1.32 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
version: "3.8"
services:
cache:
image: redis:6.2-alpine
restart: always
environment:
- REDIS_PASSWORD=123
command: [ "redis-server", "--protected-mode", "no", "--requirepass", "123" ]
volumes:
- cache:/data
networks:
- spring
postgres-db:
image: postgres:15-alpine
restart: always
ports:
- 5432:5432
volumes:
- ./backend/db-scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_PASSWORD=root
- POSTGRES_USER=root
- POSTGRES_DB=beapengine
- ROLLBAR_ACCESS_TOKEN=123
networks:
- spring
adminer:
image: adminer
restart: always
ports:
- 8082:8080
networks:
- spring
depends_on:
- postgres-db
backend:
container_name: backend-dev
environment:
- POSTGRESQL_URL=jdbc:postgresql://postgres-db:5432/beapengine?user=root&password=root
- PG_CRYPTO_KEY=123
- ROLLBAR_ACCESS_TOKEN=${ROLLBAR_ACCESS_TOKEN}
- REDIS_PASSWORD=123
build:
context: ./backend
volumes:
- ./services/ml-service:/usr/local/tomcat/webapps/ml-service
ports:
- 8080:8080
networks:
- spring
depends_on:
- cache
- postgres-db
ulimits:
nofile:
soft: 1000
hard: 2000
volumes:
cache:
networks:
spring: