-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
78 lines (73 loc) · 1.84 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
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.1'
services:
postgres:
image: 'postgres:11.1-alpine'
container_name: buscacreci_postgres
restart: unless-stopped
working_dir: /application
volumes:
- './:/application'
- './docker/postgres/pg-config:/etc/postgresql'
- './docker/postgres/init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql'
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_DB=${DB_DATABASE}
ports:
- 8043:5432
networks:
- buscacreci_network
site:
image: 'nginx:alpine'
container_name: buscacreci_nginx_site
working_dir: /application
depends_on:
- postgres
volumes:
- './:/application'
- './docker/nginx/nginx_site.conf:/etc/nginx/conf.d/default.conf'
ports:
- '8052:80'
networks:
- buscacreci_network
api:
image: 'nginx:alpine'
container_name: buscacreci_nginx_api
working_dir: /application
depends_on:
- postgres
volumes:
- './:/application'
- './docker/nginx/nginx_api.conf:/etc/nginx/conf.d/default.conf'
- './src:/application/src:rw'
ports:
- '8053:80'
networks:
- buscacreci_network
php-fpm:
build: ./docker/php-fpm
container_name: buscacreci_php
working_dir: /application
depends_on:
- postgres
volumes:
- './:/application'
- './docker/php-fpm/php-ini-overrides.ini:/etc/php/8.3/fpm/conf.d/99-overrides.ini'
networks:
- buscacreci_network
environment:
- DB_HOST=${DB_CONNECTION}
- DB_PORT=${DB_PORT}
- DB_DATABASE=${DB_DATABASE}
- DB_USER=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
networks:
buscacreci_network:
volumes:
pg-data:
pg-config:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "$PWD/./docker/postgres"