forked from outlandishideas/wpackagist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.04 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
# Experimental docker-compose for local use. Access `web` at localhost:30100.
version: "3.7"
volumes:
local_data: {}
services:
db:
# Stick with 9.6 for now to ensure compatibility with shared infrastructure's instance.
image: postgres:9.6-alpine
volumes:
- ./local_data:/var/lib/postgresql/
ports:
- 5432:5432
env_file:
- .env.postgres.local
cron:
build:
context: .
args:
env: dev
entrypoint: docker-php-entrypoint
command: /var/www/html/run-cron.sh
volumes:
- .:/var/www/html
env_file:
- .env.local
depends_on:
- db
web:
build:
context: .
args:
env: dev
ports:
- 30100:80
volumes:
- .:/var/www/html
env_file:
- .env.local
depends_on:
- db
adminer:
image: adminer
ports:
- 30101:8080