Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.1"
- services:
- db:
- image: mariadb
- restart: always
- environment:
- MYSQL_ALLOW_EMPTY_PASSWORD: "true"
- MYSQL_PASSWORD: password
- MYSQL_USER: user
- MYSQL_DATABASE: iam
- ports:
- - "3306:3306"
- networks:
- - overlay
- volumes:
- - db-data:/var/lib/mysql
- - ./db-migration/schema.sql:/docker-entrypoint-initdb.d/schema.sql
- cache:
- image: redis
- restart: always
- ports:
- - "6379:6379"
- volumes:
- - cache-data:/data
- command: redis-server --requirepass pwd
- networks:
- overlay:
- volumes:
- db-data:
- cache-data:
Add Comment
Please, Sign In to add comment