-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.dev.yml
109 lines (108 loc) · 2.5 KB
/
docker-compose.dev.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
name: cl-dev
services:
app:
image: node:22-alpine
ports:
- 127.0.0.1:8081:8081
volumes:
- ./app:/app
- npm_cache:/root/.npm/
working_dir: /app
command: sh -c 'npm i && npm run dev:docker'
frontend:
image: node:22-alpine
# ports:
# - 127.0.0.1:8085:8085
volumes:
- ./frontend:/app
- npm_cache:/root/.npm/
working_dir: /app
command: sh -c 'npm i; npm run start:docker'
server:
image: golang:1.23-alpine
depends_on:
- db
- mailpit
- mattermost
ports:
- 127.0.0.1:8084:8084
# Mobile testing
# - 0.0.0.0:8084:8084
volumes:
- ./server:/app
- go_cache:/go/pkg/mod/
environment:
- ENV=development
working_dir: /app
command: "go run cmd/server/main.go -c config.dev.yml"
mailpit:
image: axllent/mailpit
ports:
- 127.0.0.1:8025:8025
- 127.0.0.1:8125:1025
environment:
- "MP_SMTP_AUTH_ACCEPT_ANY=true"
- "MP_SMTP_AUTH_ALLOW_INSECURE=true"
pma:
image: phpmyadmin:apache
ports:
- 127.0.0.1:8082:80
environment:
- PMA_ARBITRARY=1
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=fb4aeaa6d860dbabe785675e
db:
image: mariadb
ports:
- 127.0.0.1:3306:3306
environment:
- MYSQL_ROOT_PASSWORD=fb4aeaa6d860dbabe785675e
- MYSQL_DATABASE=clothingloop
- MYSQL_USER=clothingloop
- MYSQL_PASSWORD=72bd3937e91363a747f810e7
volumes:
- mysql:/var/lib/mysql
- ../../server/sql:/scripts
mattermost:
platform: linux/amd64
image: mattermost/mattermost-preview:10.1.3
ports:
# - 127.0.0.1:8065:8065
- 127.0.0.1:5432:5432
volumes:
- mattermost_prev_db:/var/lib/postgresql/data
- mattermost_prev_config:/mm/mattermost/config
- mattermost_prev_data:/mm/mattermost-data
mattermost_mail:
image: golang:1.22.3-alpine
ports:
- 2525:2525
depends_on:
- db
volumes:
- ./server:/app
environment:
- ENV=development
working_dir: /app
command: "go run cmd/mm-mail/main.go -c config.dev.yml"
caddy:
image: caddy:alpine
# network_mode: host
ports:
- 127.0.0.1:8080:8080
# Mobile testing
# - 0.0.0.0:8080:8080
volumes:
- ./frontend/Caddyfile-dev:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
mysql:
mattermost_prev_db:
mattermost_prev_config:
mattermost_prev_data:
go_cache:
npm_cache: