-
Notifications
You must be signed in to change notification settings - Fork 36
/
docker-compose.yml
135 lines (125 loc) · 2.84 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
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
129
130
131
132
133
134
version: '3.6'
services:
node:
container_name: experience_node_1
restart: always
tty: false
stdin_open: false
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- "8089:8089"
- "9229:9229"
volumes:
- ./dist:/home/node/dist
- ./src:/home/node/src
- ./config:/home/node/config
- ./.env:/home/node/.env
networks:
- experiencenet
worker:
container_name: experience_worker_1
restart: always
tty: false
stdin_open: false
entrypoint: ["dumb-init", "pnpm", "dev-worker"]
build:
context: .
dockerfile: Dockerfile
target: dev
volumes:
- ./dist:/home/node/dist
- ./src:/home/node/src
- ./config:/home/node/config
- ./.env:/home/node/.env
networks:
- experiencenet
db:
container_name: experience_db_1
restart: always
build:
context: docker/mongo/
dockerfile: Dockerfile
ports:
- "27018:27017"
environment:
MONGODB_ROOT_PASSWORD: 123456
MONGODB_USERNAME: experience
MONGODB_PASSWORD: experience
MONGODB_DATABASE: experience
volumes:
- data:/bitnami/mongodb
networks:
- experiencenet
minio:
container_name: experience_minio_1
restart: always
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
labels:
- traefik.http.routers.api.rule=Host(`minio.domain.com`)
- traefik.http.routers.api.tls=true
- traefik.http.routers.api.tls.certresolver=lets-encrypt
- traefik.port=80
networks:
- experiencenet
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: 12345678
MINIO_DOMAIN: localhost
volumes:
- minio:/data
command: server --address 0.0.0.0:9000 --console-address 0.0.0.0:9001 /data
rabbitmq:
image: rabbitmq:3.9-management-alpine
restart: always
container_name: experience_rabbitmq_1
ports:
- "15672:15672"
- "5672:5672"
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
networks:
- experiencenet
mail:
container_name: experience_mail_1
restart: always
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
networks:
- experiencenet
cache:
image: docker.dragonflydb.io/dragonflydb/dragonfly
restart: always
ulimits:
memlock: -1
container_name: experience_cache_1
ports:
- "6379:6379"
environment:
- DRAGONFLY_USER=experience
- DRAGONFLY_PASSWORD=ewsua132435
- DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
networks:
- experiencenet
volumes:
- cache:/data
networks:
experiencenet:
driver: "bridge"
volumes:
data:
driver: "local"
data_sql:
driver: "local"
cache:
driver: "local"
minio:
driver: "local"