-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
59 lines (55 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
57
58
59
version: "3.7"
services:
#App service PHP 7.2.19
app:
build: docker/php
depends_on:
- db
container_name: app
restart: unless-stopped
volumes:
- .:/application
- ./docker/php/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
networks:
- app-network
#Nginx Service
webserver:
image: nginx:alpine
container_name: webserver
depends_on:
- app
restart: unless-stopped
tty: true
volumes:
- .:/application
- ./docker/nginx/example.com+5.pem:/etc/nginx/example.com+5.pem
- ./docker/nginx/example.com+5-key.pem:/etc/nginx/example.com+5-key.pem
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
- "443:443"
networks:
- app-network
#Postgres Service
db:
build: docker/postgres
container_name: "db"
restart: always
ports:
- "32768:5432"
environment:
- POSTGRES_MULTIPLE_DATABASES=erp,erp_testing
- POSTGRES_USER=docker_erp_user
- POSTGRES_PASSWORD=docker_erp_password
volumes:
- my_dbdata:/var/lib/postgresql/
networks:
- app-network
#Docker Networks
networks:
app-network:
driver: bridge
#Volumes
volumes:
my_dbdata:
driver: local