Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- nginx:
- image: nginx
- volumes:
- - ./web/api.conf:/etc/nginx/conf.d/default.conf
- ports:
- - "8080:80"
- depends_on:
- - api
- api:
- build:
- context: ./api
- user: "${PUID}:${PGID}"
- environment:
- - DB_DATABASE=${DB_NAME}
- - DB_PASSWORD=${DB_PASSWORD}
- volumes:
- - ./api:/var/www
- depends_on:
- - workspace
- worker:
- build:
- context: ./worker
- user: "${PUID}:${PGID}"
- restart: always
- command: php /var/www/artisan osago:worker
- environment:
- - DB_DATABASE=${DB_NAME}
- - DB_PASSWORD=${DB_PASSWORD}
- volumes:
- - ./api:/var/www
- depends_on:
- - api
- 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}
- redis:
- image: redis
- workspace:
- build:
- context: ./workspace
- args:
- - PUID=${PUID}
- - PGID=${PGID}
- tty: true
- command: osagoUpdater
- environment:
- - DB_DATABASE=${DB_NAME}
- - DB_PASSWORD=${DB_PASSWORD}
- volumes:
- - ./api:/var/www
- - ./workspace/update.sh:/usr/local/bin/osagoUpdater
- depends_on:
- - db
- - redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement