Created
August 17, 2018 18:53
-
-
Save foxutech/c11da6cc7aa35d6eb5f7bc5f3d4ed4d0 to your computer and use it in GitHub Desktop.
seccomp in docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
db: | |
container_name: db | |
image: mariadb:5.5 | |
ports: | |
- 3306 | |
cap_add: | |
- SYS_PTRACE | |
security_opt: | |
- seccomp="default.json" | |
environment: | |
MYSQL_ROOT_PASSWORD: <<any_pass>> | |
MYSQL_DATABASE: db | |
MYSQL_USER: dber | |
MYSQL_PASSWORD: <<any_pass>> | |
wp: | |
container_name: wp | |
image: wordpress:latest | |
ports: | |
- 80:80 | |
links: | |
- db | |
environment: | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_USER: dber | |
WORDPRESS_DB_PASSWORD: <<any_pass>> | |
WORDPRESS_DB_NAME: db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment