Skip to content

Instantly share code, notes, and snippets.

@chrisedrego
Created March 12, 2021 09:26
Show Gist options
  • Save chrisedrego/654e6177fc2a7e2d0278306d83ff3f14 to your computer and use it in GitHub Desktop.
Save chrisedrego/654e6177fc2a7e2d0278306d83ff3f14 to your computer and use it in GitHub Desktop.
Vault MySQL Docker-compose
version: "3.3"
services:
vault:
image: vault
container_name: vault-dev
ports:
- '8200:8200'
restart: always
volumes:
- ./vault/config:/vault/config
- ./vault/policies:/vault/policies
- ./vault/data:/vault/data
- ./vault/logs:/vault/logs
environment:
- 'VAULT_ADDR=http://localhost:8200'
- 'VAULT_DEV_ROOT_TOKEN_ID=00000000-0000-0000-0000-000000000000'
- 'dev'
cap_add:
- IPC_LOCK
db:
image: mysql/mysql-server:5.7
container_name: mysql-dev
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'ready2go'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- mysql-db:/var/lib/mysql
volumes:
mysql-db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment