nginx,postgresql, elastic, redis and pv

This commit is contained in:
Hüseyin Mert 2019-11-07 22:05:10 +03:00 committed by GitHub
parent 023bd700a0
commit 574ddafdd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 68 additions and 7 deletions

View File

@ -1,21 +1,82 @@
version: '3' version: '3'
networks:
akaunting:
volumes:
mysqldata:
# pgsqldata:
services: services:
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- "8080:80"
volumes:
- ./:/var/www/html
- ./nginx.example.com.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
networks:
- akaunting
mysql: mysql:
image: mysql:5 image: mysql:5
container_name: mysql
restart: unless-stopped
volumes:
- mysqldata:/var/lib/mysql
tty: true
ports: ports:
- 3306:3306 - "3306:3306"
environment: environment:
MYSQL_ROOT_PASSWORD: akaunting_root_password MYSQL_ROOT_PASSWORD: akaunting_root_password
MYSQL_DATABASE: akaunting_db MYSQL_DATABASE: akaunting_db
MYSQL_USER: akaunting_admin MYSQL_USER: akaunting_admin
MYSQL_PASSWORD: akaunting_password MYSQL_PASSWORD: akaunting_password
web: SERVICE_TAGS: dev
image: akaunting SERVICE_NAME: mysql
networks:
- akaunting
# pgsql:
# image: postgres:9.6-alpine
# volumes:
# - pgsqldata:/var/lib/postgresql/data
# environment:
# - "POSTGRES_DB=akaunting_db"
# - "POSTGRES_USER=akaunting_admin"
# - "POSTGRES_PASSWORD=akaunting_password"
# ports:
# - "5432:5432"
php:
build:
context: .
dockerfile: Dockerfile
container_name: php
volumes: volumes:
- ./:/var/www/html - ./:/var/www/html
ports: ports:
- 8080:80 - "9000:9000"
environment: networks:
APP_DEBUG: "true" - akaunting
links: depends_on:
- mysql - mysql
# redis:
# container_name: redis
# image: redis:4.0-alpine
# command: redis-server --appendonly yes
# networks:
# - akaunting
# ports:
# - "6379:6379"
# elastic:
# image: elasticsearch:5.5-alpine
# ports:
# - "9200:9200"