Skip to content

Commit

Permalink
add example compose file
Browse files Browse the repository at this point in the history
readme tweaks

Signed-off-by: Felix Bartels <[email protected]>
  • Loading branch information
fbartels committed Nov 11, 2019
1 parent 90efdce commit 6487d50
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extras/dcgoss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ When debugging test execution its beneficual to set both `DEBUG=true` and `GOSS_

**Example:**

`DEBUG=true GOSS_FILES_PATH=webapp GOSS_WAIT_OPTS="-r 60s -s 5s" dcgoss run kopano_webapp`
`DEBUG=true GOSS_FILES_PATH=db GOSS_WAIT_OPTS="-r 60s -s 5s" dcgoss run db`
28 changes: 28 additions & 0 deletions extras/dcgoss/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.3'

services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress

wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data: {}

0 comments on commit 6487d50

Please sign in to comment.