Created
April 23, 2019 13:34
-
-
Save coreymcmahon/dddbd6cf3299a0e7874d9c5c8a9efded to your computer and use it in GitHub Desktop.
Example Docker Compose file for a Laravel application.
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.7' | |
services: | |
# foodkit php api | |
app: | |
container_name: foodkit.app | |
build: | |
context: ./docker/app | |
dockerfile: Dockerfile | |
image: foodkitapp.io/app | |
init: true | |
volumes: | |
- .:/var/www/html:delegated | |
ports: | |
- "9999:80" | |
networks: | |
- fknet | |
pgsql: | |
container_name: foodkit.pgsql | |
build: | |
context: ./docker/pgsql | |
dockerfile: Dockerfile | |
environment: | |
- POSTGRES_PASSWORD=secret | |
ports: | |
- "54321:5432" | |
volumes: | |
- pgsqldata:/var/lib/postgresql/data:delegated | |
networks: | |
- fknet | |
redis: | |
container_name: foodkit.redis | |
image: redis:alpine | |
volumes: | |
- redisdata:/data:delegated | |
ports: | |
- "63790:6379" | |
networks: | |
- fknet | |
beanstalkd: | |
container_name: foodkit.beanstalkd | |
image: schickling/beanstalkd | |
ports: | |
- "11300" | |
networks: | |
- fknet | |
networks: | |
fknet: | |
driver: "bridge" | |
volumes: | |
pgsqldata: | |
driver: "local" | |
redisdata: | |
driver: "local" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment