2019-07-08 08:41:03 +05:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysql:
|
|
|
|
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: mariadb:10.3
|
|
|
|
container_name: database
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2019-09-25 18:45:50 +05:00
|
|
|
- fastpastebin_mysql:/var/lib/mysql
|
2019-07-08 08:41:03 +05:00
|
|
|
environment:
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
|
|
- MYSQL_DATABASE=fastpastebin
|
|
|
|
- MYSQL_USER=fastpastebin
|
|
|
|
- MYSQL_PASSWORD=fastpastebin
|
|
|
|
fastpastebin:
|
|
|
|
build: .
|
|
|
|
image: fastpastebin
|
|
|
|
container_name: fastpastebin
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
volumes:
|
2019-09-25 18:45:50 +05:00
|
|
|
- ./docker/fastpastebin.docker.yaml:/app/fastpastebin.yaml:ro
|
2019-07-08 08:41:03 +05:00
|
|
|
# ports:
|
|
|
|
# - 25544:25544
|
|
|
|
web:
|
|
|
|
image: nginx:1.16-alpine
|
|
|
|
container_name: nginx
|
|
|
|
volumes:
|
2019-09-25 18:45:50 +05:00
|
|
|
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
2019-07-08 08:41:03 +05:00
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
depends_on:
|
|
|
|
- fastpastebin
|