forked from asouza/seed-desafio-cdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (53 loc) · 1.25 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
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: "3.1"
services:
nginx:
image: nginx:alpine
env_file:
- .env
container_name: nginx
working_dir: /app
volumes:
- ./app:/app
- .docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "$HTTP_PORT:80"
depends_on:
- php
- postgres
networks:
- backend
php:
env_file:
- .env
build: .docker/php-fpm
container_name: php
working_dir: /app
expose:
- "$PHPFPM_PORT"
volumes:
- ./app:/app
- .docker/php-fpm/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini
networks:
- backend
postgres:
image: postgres:11.1-alpine
env_file:
- .env
container_name: postgres
working_dir: /app
volumes:
- .docker/database:/app
environment:
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_DB=$POSTGRES_DB
ports:
- "$DB_PORT:5432"
networks:
- backend
networks:
backend:
driver: bridge