-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
40 lines (36 loc) · 933 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3.4'
services:
web:
image: nginx:1.13.7
depends_on:
- php
volumes:
- ./docker/nginx/invoice.conf:/etc/nginx/conf.d/default.conf
- ./public:/var/www/invoice/public
ports:
- "8080:80"
php:
image: cocoders/php-fpm:7.2.0
volumes:
- .:/var/www/invoice
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
environment:
POSTGRES_DSN: 'pgsql:host=postgres;port=5432;dbname=invoice;'
POSTGRES_USER: 'invoice'
POSTGRES_DB: 'invoice'
POSTGRES_PASSWORD: '!E4\mP-C;Q!@2vV3'
restart: always
working_dir: /var/www/invoice
postgres:
image: postgres:10.1
volumes:
- pg_data:/var/lib/postgresql/data
- ./docker/postgres/initsql:/docker-entrypoint-initdb.d/
environment:
POSTGRES_PASSWORD: '!E4\mP-C;Q!@2vV3'
POSTGRES_USER: 'invoice'
restart: always
ports:
- "5432:5432"
volumes:
pg_data: