Add docker-compose for my Raspberry Pi 4
This commit is contained in:
28
Raspberry/docker-compose.yml
Normal file
28
Raspberry/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
version: '2.4'
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: nginx:1.19
|
||||||
|
container_name: web
|
||||||
|
mem_limit: 256m
|
||||||
|
restart: on-failure
|
||||||
|
volumes:
|
||||||
|
- $HOME/Volumes/nginx:/usr/share/nginx/html
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:13
|
||||||
|
container_name: postgres
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
mem_limit: 2048m
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=docker
|
||||||
|
restart: on-failure
|
||||||
|
volumes:
|
||||||
|
- $HOME/Volumes/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external:
|
||||||
|
name: hiyori-net
|
||||||
Reference in New Issue
Block a user