-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
50 lines (45 loc) · 914 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
41
42
43
44
45
46
47
48
49
50
version: '3.7'
services:
# PHP Service
php:
build: './php/'
container_name: laravel-php
networks:
- backend
volumes:
- ./public_html:/var/www/html
- ./apache2/log:/var/log/apache2
# Apache Service
apache:
build: './apache2/'
container_name: laravel-apache
depends_on:
- php
- pgsql
networks:
- frontend
- backend
ports:
- "8080:80"
- "443:443"
volumes:
- ./public_html:/var/www/html
- ./apache2/log:/var/log/apache2
#PostgreSQL Service
pgsql:
image: postgres:12.0-alpine
container_name: laravel-pgsql
working_dir: /data/pgsql
volumes:
- ./postgresql-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpwd
POSTGRES_DB: pgdb
ports:
- 5432:5432
networks:
- backend
networks:
frontend:
backend: