-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (42 loc) · 1.18 KB
/
docker-compose.yaml
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
# Update this file on production
version: '3.9'
services:
farmacia-app:
build:
context: .
dockerfile: ./php-fpm/Dockerfile
container_name: farmacia-app
image: farmacia-app:v1
environment:
APP_KEY: "base64:E/oCA2KJzSygqS+pAhxp0h+SOGZed18KvDsyWMFp1lg="
APP_DEBUG: "false"
DB_CONNECTION: pgsql
DB_HOST: db-postgres
DB_PORT: 5432
DB_DATABASE: dbfarmacia
DB_USERNAME: gestordb
DB_PASSWORD: mypostgresdb
depends_on:
- db-postgres
nginx-laravel:
build:
context: .
dockerfile: ./nginx/Dockerfile
args:
PHP_UPSTREAM_CONTAINER: "farmacia-app"
depends_on:
- farmacia-app
ports:
- "9600:80"
container_name: nginx-laravel
image: nginx-laravel:v1
environment:
- "APP_KEY=base64:E/oCA2KJzSygqS+pAhxp0h+SOGZed18KvDsyWMFp1lg="
- "APP_DEBUG=false"
db-postgres:
image: postgres:13.2-alpine
environment:
POSTGRES_USER: "gestordb"
POSTGRES_PASSWORD: "mypostgresdb"
POSTGRES_DB: "dbfarmacia"
container_name: db-postgres