-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (36 loc) · 1.15 KB
/
compose.yaml
File metadata and controls
39 lines (36 loc) · 1.15 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
# How to use this:
# Install docker and docker-compose
# First build the images with this command: docker-compose -f compose.yaml build
# Then when you want to run the system, run: docker-compose -f compose.yaml up
services:
# base image is a base for website
# this image includes fetching and installing all the relevant libraries
base:
image: podnebnik/base:1.0
build:
context: .
dockerfile: deployment/Dockerfile.dev.base
# website is the runner for yarn
website:
depends_on:
- base # website needs to have base image built before
build:
context: .
dockerfile: deployment/Dockerfile.dev.website
volumes:
- .:/build
command:
bash -c "yarn install && yarn run start"
ports:
# you can change the 8003 to something else if it clashes on your system
- "8003:8080"
# this is a websocket port that 11ty seems to use for something, not sure what
# do not change this line below
- "24678:24678"
# datasette, the database interface behind podnebnik
datasette:
build:
context: .
dockerfile: deployment/Dockerfile.datasette
ports:
- "8001:8001"