-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
73 lines (68 loc) · 1.58 KB
/
docker-compose.yaml
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
69
70
71
72
secrets:
jwt_public:
file: ./.ops/jwt/public.pem
jwt_private:
file: ./.ops/jwt/private.pem
services:
webapp:
image: ghcr.io/wojciechem/legacy:dev-local
build:
dockerfile: Dockerfile
context: .
target: test
tags:
- "ghcr.io/wojciechem/legacy:dev-local"
env_file:
- .env
secrets:
- jwt_public
- jwt_private
volumes:
- ./vendor:/app/vendor
- ./src:/app/src
openresty:
build:
dockerfile: ./.ops/openresty/Dockerfile
context: .
tags:
- "ghcr.io/wojciechem/openresty:dev-local"
ports:
- target: 80
published: 8700
protocol: tcp
volumes:
- ./.ops/server.conf.template:/etc/nginx/templates/default.conf.template/:ro
- ./public:/app/public
environment:
- NGINX_HOST=localhost
- REDIRECT_DOMAIN=localhost:8700
- APP_HOST=webapp
- APP_PORT=9000
nginx:
image: nginx:1.25.1
ports:
- target: 80
published: 8765
protocol: tcp
volumes:
- ./.ops/server.conf.template:/etc/nginx/templates/default.conf.template/:ro
- ./public:/app/public
environment:
- NGINX_HOST=localhost
- APP_HOST=webapp
- APP_PORT=9000
- REDIRECT_DOMAIN=localhost:8765
webapp-frankenphp:
image: ghcr.io/wojciechem/legacy:dev-local-frankenphp
build:
dockerfile: Dockerfile
context: .
target: test
args:
- BASE_IMAGE=dunglas/frankenphp:main
# profiles:
# - dev
ports:
- target: 80
published: 8766
protocol: tcp