Skip to content

Commit 25806a8

Browse files
authored
Create manual-service.md
1 parent 81a824e commit 25806a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

solution/wordpress/manual-service.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Run the below Service CLIs
2+
3+
```
4+
docker service create --env WORDPRESS_DB_HOST=wordpressdb1 --env WORDPRESS_DB_PASSWORD=collab123 --network collabnet --replicas 4 --name wordpressapp --publish 80:80/tcp wordpress:latest
5+
```
6+
7+
8+
```
9+
docker service create --replicas 1 --name wordpressdb1 --network collabnet --env MYSQL_ROOT_PASSWORD=collab123 --env MYSQL_USER=wordpress --env MYSQL_PASSWORD=collab123 --env MYSQL_DATABASE=wordpress mysql:5.7
10+
```

0 commit comments

Comments
 (0)