-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·45 lines (42 loc) · 933 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·45 lines (42 loc) · 933 Bytes
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
version: "3"
services:
php:
build: .docker/php
container_name: "php-srv"
image: server-php-nginx
volumes:
- ./src:/var/www/html
ports:
- "9000:9000"
restart: always
networks:
- mynetwork
nginx:
image: nginx
container_name: "nginx-srv"
volumes:
- .docker/nginx/server.pem:/etc/nginx/ssl/server.pem
- .docker/nginx/server-key.pem:/etc/nginx/ssl/server-key.pem
- .docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./src:/var/www/html
ports:
- "80:80"
- "443:443"
restart: always
networks:
- mynetwork
postgres:
image: postgres:latest
container_name: "postgres-srv"
ports:
- "5432:5432"
volumes:
- .docker/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "docker"
restart: always
networks:
- mynetwork
networks:
mynetwork:
driver: bridge