forked from OBrink/DECIMER.ai
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·52 lines (48 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
executable file
·52 lines (48 loc) · 1.34 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
version: '3.7'
services:
app:
image: decimer-app:latest
build:
context: .
dockerfile: ./docker/Dockerfile
args:
- PHP_VERSION=8.2
container_name: decimer_app
restart: unless-stopped
volumes:
- ./:/var/www/app
- /var/www/app/vendor
networks:
- app-net
extra_hosts:
- "internal.host:host-gateway"
nginx:
image: nginx:alpine
container_name: decimer_nginx
restart: unless-stopped
ports:
- "${APP_PORT:-8080}:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./public:/var/www/app/public:cached
- ./storage/app/public:/var/www/app/storage/app/public:cached
depends_on:
- app
networks:
- app-net
supervisor:
image: decimer-app:latest
container_name: decimer_supervisor
restart: unless-stopped
volumes:
- ./:/var/www/app
- /var/www/app/vendor
depends_on:
- app
networks:
- app-net
command: supervisord -n -c /etc/supervisor/supervisord.conf
networks:
app-net:
driver: bridge