Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- web:
- image: nginx
- volumes:
- - ./web/api.conf:/etc/nginx/conf.d/default.conf
- ports:
- - "8080:80"
- depends_on:
- - api
- api:
- image: php:7-fpm
- user: "${PUID}:${PGID}"
- volumes:
- - ./api:/var/www
- depends_on:
- - db
- db:
- image: mysql:5.7
- user: "${PUID}:${PGID}"
- ports:
- - 3306:3306
- volumes:
- - "./db/:/var/lib/mysql"
- environment:
- MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
- MYSQL_DATABASE: ${DB_NAME}
- depends_on:
- - workspace
- workspace:
- build:
- context: ./workspace
- args:
- - PUID=${PUID}
- - PGID=${PGID}
- tty: true
- command: composer install --prefer-dist
- volumes:
- - ./api:/var/www
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement