-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.16 KB
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
services:
nginx:
image: nginx:latest
volumes:
- ./:/var/www/code/
- ./.docker/nginx/config/default.conf:/etc/nginx/conf.d/default.conf
- ./.docker/nginx/cert:/etc/cert
networks:
- frontend
- backend
depends_on:
- php
- pgsql
environment:
VIRTUAL_HOST: ${APP_HOST}
VIRTUAL_PORT: 443
VIRTUAL_PROTO: https
php:
build: ./.docker/php
volumes:
- ./:/var/www/code/
- ./.docker/php/config/php.ini:/usr/local/etc/php/conf.d/php.ini
networks:
- backend
pgsql:
image: postgres:latest
ports:
- ${DB_PORT}:${DB_PORT}
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
PGDATA: /var/lib/postgresql/data
networks:
- backend
networks:
frontend:
external:
name: proxy_proxy
backend:
volumes:
postgres-data: