Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 39c9863

Browse files
authored
Merge pull request #25 from shin-/master
Add missing .docker-app example folder
2 parents 6cfbe3e + bb5c8cc commit 39c9863

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.tar.gz
22
*.docker-app
33
_build/
4+
!examples/simple/*.docker-app
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: "3.6"
2+
services:
3+
mysql:
4+
image: mysql:${mysql.image.version}
5+
environment:
6+
MYSQL_ROOT_PASSWORD: ${mysql.rootpass}
7+
MYSQL_DATABASE: ${mysql.database}
8+
MYSQL_USER: ${mysql.user.name}
9+
MYSQL_PASSWORD: ${mysql.user.password}
10+
volumes:
11+
- source: db_data
12+
target: /var/lib/mysql
13+
type: volume
14+
deploy:
15+
mode: replicated
16+
replicas: 1
17+
wordpress:
18+
image: wordpress
19+
environment:
20+
WORDPRESS_DB_USER: ${mysql.user.name}
21+
WORDPRESS_DB_PASSWORD: ${mysql.user.password}
22+
WORDPRESS_DB_NAME: ${mysql.database}
23+
WORDPRESS_DB_HOST: mysql
24+
WORDPRESS_DEBUG: ${debug}
25+
deploy:
26+
mode: ${wordpress.scale.mode}
27+
replicas: ${wordpress.scale.replicas}
28+
29+
volumes:
30+
db_data:
31+
name: ${volumes.db_data.name}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 0.0.1
2+
application:
3+
name: simple
4+
description: ""
5+
tag: ""
6+
labels:
7+
- alpha
8+
author: sakuya.izayoi
9+
targets:
10+
swarm: true
11+
kubernetes: true
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
debug: true
2+
mysql:
3+
image:
4+
version: 8
5+
rootpass: axx[<^cz3d.fPb
6+
database: wordpressdata
7+
user:
8+
name: wordpress
9+
password: wordpress
10+
wordpress:
11+
scale:
12+
mode: global
13+
replicas: 0
14+
volumes:
15+
db_data:
16+
name: db_data

0 commit comments

Comments
 (0)