-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.53 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
68
69
70
71
72
services:
minio:
image: minio/minio:latest
environment:
- MINIO_ROOT_USER=your_username
- MINIO_ROOT_PASSWORD=your_password
- MINIO_DEFAULT_BUCKETS=boot
command: server --address "0.0.0.0:9000" --console-address ":9001" /data
healthcheck:
test: [ "CMD", "mc", "alias", "set", "local", "http://localhost:9000", "your_username", "your_password" ]
interval: 30s
timeout: 20s
retries: 3
volumes:
- minio_data:/data
networks:
- default
- npm_network
database:
image: mariadb
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 123pass
MYSQL_DATABASE: bootdb
MYSQL_USER: testuser
MYSQL_PASSWORD: 123pass
volumes:
- ./data:/var/lib/mysql
server:
build:
context: ./server
dockerfile: Dockerfile
ports:
- "3883:3333"
depends_on:
- database
- minio
networks:
- default
- npm_network
environment:
- NODE_ENV=production
- MINIO_PUBLIC_URL=https://boot-s3.solveweb.com.br
client:
build:
context: ./client
dockerfile: Dockerfile
args:
VITE_SERVER_URL: https://boot-back.solveweb.com.br
ports:
- "8883:80"
depends_on:
- server
networks:
- default
- npm_network
environment:
- NODE_ENV=production
networks:
npm_network:
external: true
name: solveweb-site_web
volumes:
minio_data: