[FEAT] Full function and deployed version
This commit is contained in:
32
deploy/docker-compose.yml
Normal file
32
deploy/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
api:
|
||||
image: php:8.3-cli
|
||||
container_name: ohmj-api
|
||||
hostname: api
|
||||
ports:
|
||||
- "8000:80"
|
||||
volumes:
|
||||
- /mnt/tools/docker/ohmj/api:/var/www/html
|
||||
- /mnt/tools/docker/ohmj/Scores:/var/www/html/legacy/Scores
|
||||
environment:
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
command: php -S 0.0.0.0:80 -t /var/www/html router.php
|
||||
networks:
|
||||
- ohmj-network
|
||||
|
||||
frontend:
|
||||
image: nginx:alpine
|
||||
container_name: ohmj-frontend
|
||||
hostname: partitions
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- /mnt/tools/docker/ohmj/frontend:/usr/share/nginx/html:ro
|
||||
networks:
|
||||
- ohmj-network
|
||||
|
||||
networks:
|
||||
ohmj-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user