-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (61 loc) · 1.46 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.7'
services:
nginx:
container_name: nginx-transaction
restart: always
build:
context: ./docker/nginx
dockerfile: Dockerfile
ports:
- "4000:80"
volumes:
- ./docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/logs:/var/log/nginx
- ./public:/var/www/public
- ./storage/app/public/:/var/www/public/storage/
depends_on:
- php
- postgres
php:
container_name: php-transaction
restart: always
build:
context: ./docker/php
dockerfile: Dockerfile
volumes:
- ./:/var/www
postgres:
container_name: postgres-transaction
image: postgres:11
user: "1000:50"
restart: always
ports:
- 5432:5432
volumes:
- ./docker/postgresql/data:/var/lib/postgresql/data
environment:
POSTGRES_MULTIPLE_DATABASES: transaction,transaction_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
composer:
container_name: composer-transaction
build:
context: ./docker/composer
dockerfile: Dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
depends_on:
- postgres
artisan:
container_name: artisan-transaction
build:
context: ./docker/php
dockerfile: Dockerfile
working_dir: /var/www
entrypoint: ['/var/www/artisan']
depends_on:
- postgres
volumes:
- ./:/var/www