-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 888 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 888 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
# snowfall is the app name
version: '3.8'
services:
database:
# Install postgres on our docker image
image: postgres
# Give our container a unique name
container_name: snowfall-database
restart: unless-stopped
environment:
POSTGRES_PASSWORD: secret
POSTGRES_DB: snowfall
volumes:
- ./postgres-data:/var/lib/postgresql/data
# Map 5433 on our computer to 5432 in docker
# 5432 on our computer is already running postgres.
ports:
- '5433:5432'
php-apache:
# Give our container a unique name
container_name: snowfall-php
build:
context: ./php
dockerfile: Dockerfile
# Port for our PHP server maps to port 80 on docker
ports:
- '8000:80'
volumes:
- ./php/src:/var/www/html/
- ./php/config/custom.ini:/usr/local/etc/php/conf.d/custom.ini
depends_on:
- database