Skip to content

Instantly share code, notes, and snippets.

@gadelkareem
Last active December 31, 2019 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gadelkareem/a7047666a6c269257ad1537c32d5f209 to your computer and use it in GitHub Desktop.
Save gadelkareem/a7047666a6c269257ad1537c32d5f209 to your computer and use it in GitHub Desktop.
Docker Compose testing stack
version: "3.3"
services:
postgres:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: postgres
volumes:
- ./docker/containers/postgresql/data:/var/lib/postgresql/data
ports:
- "5432:5432"
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
entrypoint: ['/entrypoint.sh', '--default-authentication-plugin=mysql_native_password']
volumes:
- ./docker/containers/mysql:/var/lib/mysql
ports:
- "3306:3306"
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
test:
build:
context: ./src/ezplatform
dockerfile: dockerfile
volumes:
- ./src/ezplatform:/app
ports:
- "8080:8080"
stdin_open: true
tty: true
# entrypoint: /bin/bash
command: "tail -f /dev/null"
depends_on:
- mysql
- redis
links:
- mysql
- redis
FROM chialab/php:7.4
WORKDIR /app
RUN apt update \
&& apt install -y curl nodejs yarn
USER root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment