Last active
December 31, 2019 12:05
-
-
Save gadelkareem/a7047666a6c269257ad1537c32d5f209 to your computer and use it in GitHub Desktop.
Docker Compose testing stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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