forked from ucfopen/UDOIT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (42 loc) · 904 Bytes
/
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
version: '3.3'
services:
nginx:
image: nginx:stable-alpine
volumes:
- ./docker/etc/nginx:/etc/nginx
- ./docker/var/ssl:/var/ssl
- .:/var/www/html
ports:
- "80:80"
- "443:443"
# Uncomment this block and comment the next db block
# to use MySQL instead of Postgres
# db:
# image: mysql:latest
# volumes:
# - dbdata:/var/lib/mysql
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: udoit
# MYSQL_USER: udoit
# MYSQL_PASSWORD: udoit
# ports:
# - "3306:3306"
db:
image: postgres:alpine
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: udoit
POSTGRES_PASSWORD: udoit
POSTGRES_DB: udoit
php:
build:
context: .
dockerfile: docker/php71-fpm.Dockerfile
volumes:
- .:/var/www/html
volumes:
web:
dbdata: