Skip to content

Instantly share code, notes, and snippets.

@cftang0827
Created January 8, 2020 05:31
Show Gist options
  • Select an option

  • Save cftang0827/a603367862f3a9f6c9767399dc3ba634 to your computer and use it in GitHub Desktop.

Select an option

Save cftang0827/a603367862f3a9f6c9767399dc3ba634 to your computer and use it in GitHub Desktop.
docker-compose yaml sample for circleci building
version: "3"
services:
db:
image: mysql:5.7
restart: always
container_name: db
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=test
- MYSQL_ROOT_PASSWORD=xxxxx
- MYSQL_PORT=3306
redis:
image: redis
container_name: redis
restart: always
ports:
- "6379:6379"
celery:
build: .
image: celery
command:
celery -A api worker -l info
container_name: celery
links:
- db
- redis
environment:
- DATABASE_MASTER_URL=######Link to db##########
- CELERY_REDIS_URL=redis://redis:6379
volumes:
db_data: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment