This repository was archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.55 KB
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
60
61
62
63
64
65
66
67
68
version: '3.4'
x-cache:
&cache
cache_from:
- quay.io/api-platform/php
- quay.io/api-platform/nginx
services:
db:
# In production, you may want to use a managed database service
image: postgres:10-alpine
container_name: sharep_db
environment:
- POSTGRES_DB=api
- POSTGRES_PASSWORD=!ChangeMe!
- POSTGRES_USER=api-platform
volumes:
- db-data:/var/lib/postgresql/data:rw
# you may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/postgresql/data:rw
ports:
- 5432:5432
php:
image: quay.io/api-platform/php
container_name: sharep_php
build:
context: ""
target: sharep_php
<<: *cache
depends_on:
- db
# Comment out these volumes in production
volumes:
- ./:/srv/sharep:rw,cached
# If you develop on Linux, uncomment the following line to use a bind-mounted host directory instead
- ./var:/srv/sharep/var:rw
ports:
- 9111:9111
api:
image: quay.io/api-platform/nginx
container_name: sharep_nginx
build:
context: ""
target: sharep_nginx
<<: *cache
depends_on:
- php
# Comment out this volume in production
volumes:
- ./public:/srv/sharep/public:ro
ports:
- 8080:80
h2-proxy:
# Don't use this proxy in prod
container_name: sharep_proxy
build:
context: docker/h2-proxy
depends_on:
- api
ports:
- 8443:8443
volumes:
db-data: {}