Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.4'
- services:
- my-api:
- image: my-api
- depends_on:
- - mysql
- environment:
- - ASPNETCORE_ENVIRONMENT=Development
- - PRIMARY_CONNECTION_STRING=Database=myapidb;Server=mysql;Uid=my_api_user;Pwd=xxxxxxxxxxx;
- # As I'm using the override for local dev, I include mysql into the mix
- mysql:
- container_name: mysql
- restart: always
- image: mysql:8.0.17
- environment:
- MYSQL_DATABASE: pricing
- MYSQL_ROOT_PASSWORD: 'xxxxxxxxxxx'
- MYSQL_USER: 'my_api_user'
- MYSQL_PASSWORD: 'xxxxxxxxxxx'
- ports:
- - 3306:3306
- expose:
- - 3306
- volumes:
- - ./Data/local-mysql-init/:/docker-entrypoint-initdb.d/
- - mysql-datavolume:/var/lib/mysql
- splunkforwarder:
- build:
- context: .
- dockerfile: SplunkForwarder/Dockerfile
- environment:
- SPLUNK_START_ARGS: '--accept-license'
- SPLUNK_PASSWORD: 'xxxxxxxxxxx'
- # Local copy of Splunk, for report writing, etc.
- splunk:
- container_name: splunk
- image: splunk/splunk:latest
- environment:
- SPLUNK_START_ARGS: '--accept-license'
- SPLUNK_PASSWORD: 'xxxxxxxxxxx'
- ports:
- - 8000:8000
- expose:
- - 9997
- volumes:
- - splunk-data:/opt/splunk/var
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement