-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.dev.yml
72 lines (71 loc) · 1.54 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
name: cl-dev
services:
app:
image: node:22-alpine
ports:
- 127.0.0.1:8081:8081
# - 5173:5173
volumes:
- ./app:/app
working_dir: /app
command: sh -c 'npm i && npm run dev:docker'
frontend:
image: node:22-alpine
# ports:
# - 3000:3000
volumes:
- ./frontend:/app
working_dir: /app
command: sh -c 'npm i; npm run start:lan'
server:
image: golang:1.23-alpine
depends_on:
- db
- mailpit
ports:
- 8084:8084
volumes:
- ./server:/app
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"
- "MP_WEBROOT=/mailpit/"
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
caddy:
build:
context: ./frontend/
dockerfile: dev.Dockerfile
ports:
# website
- 127.0.0.1:8080:80
volumes:
mysql: