-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (64 loc) · 1.35 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.7"
services:
app:
build:
args:
user: aji
uid: 1000
context: ./
dockerfile: ./Dockerfile
image: hootka
container_name: hootka-app
working_dir: /var/www/
volumes:
- ./:/var/www
- ./user.ini:/usr/local/etc/php/php.ini
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
- hootka
nginx:
image: nginx:1.17-alpine
container_name: hootka-nginx
ports:
- 8000:80
volumes:
- ./:/var/www
- ./default.conf:/etc/nginx/conf.d/default.conf
networks:
- hootka
nodejs:
image: node:16-alpine
container_name: hootka-node
ports:
- 5173:5173
volumes:
- ./:/var/www
working_dir: /var/www
entrypoint: ["npm","run", "dev"]
mem_limit: 512m
mem_reservation: 128M
cpus: 0.5
networks:
hootka:
ipv4_address: 10.10.0.100
# db:
# image: mariadb:latest
# container_name: hootkadb
# ports:
# - 3306:3306
# volumes:
# - ./database:/database
# environment:
# MYSQL_ROOT_PASSWORD: password
# networks:
# hootka:
# ipv4_address: 10.6.0.99
networks:
hootka:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.10.0.0/24
gateway: 10.10.0.1