Pasteme
This commit is contained in:
66
Test/Docker/PasteMe/docker-compose.yml
Normal file
66
Test/Docker/PasteMe/docker-compose.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
pasteme-frontend:
|
||||
image: pasteme/frontend:3.4.2
|
||||
container_name: pasteme-frontend
|
||||
depends_on:
|
||||
- pasteme-backend
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-so", "/dev/null", "localhost:8080/usr/config.json"]
|
||||
interval: 45s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8000:8080
|
||||
volumes:
|
||||
- D:\cong\compose-template\_tmp\pasteme\nginx-logs\:/var/lib/pasteme/
|
||||
- D:\cong\compose-template\_tmp\pasteme\frontend-usr\:/www/pasteme/usr/
|
||||
|
||||
pasteme-backend:
|
||||
image: pasteme/go-backend:3.5.2
|
||||
container_name: pasteme-backend
|
||||
depends_on:
|
||||
- pasteme-mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-O", "/dev/null", "localhost:8000/api/v3/?method=beat"]
|
||||
interval: 45s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- D:\cong\compose-template\_tmp\pasteme\backend-config\:/etc/pastemed/
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-file: "3"
|
||||
max-size: "128m"
|
||||
|
||||
pasteme-mysql:
|
||||
image: mysql:5.5
|
||||
container_name: pasteme-mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||||
interval: 45s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
command: [
|
||||
'--character-set-server=utf8mb4',
|
||||
'--collation-server=utf8mb4_unicode_ci'
|
||||
]
|
||||
environment:
|
||||
MYSQL_USER: username
|
||||
MYSQL_PASSWORD: password
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
MYSQL_DATABASE: pasteme
|
||||
MYSQL_MAX_ALLOWED_PACKET: 128M
|
||||
MYSQL_INNODB_LOG_FILE_SIZE: 64M
|
||||
volumes:
|
||||
- D:\cong\compose-template\_tmp\pasteme\mysql:/var/lib/mysql
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-file: "3"
|
||||
max-size: "128m"
|
||||
Reference in New Issue
Block a user