forked from typestruck/merochat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile.yml
61 lines (50 loc) · 1.31 KB
/
dockerfile.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
version: '3.1'
networks:
merochat_network:
ipam:
config:
- subnet: 10.0.0.0/24
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER: merochat
POSTGRES_PASSWORD: merochat
POSTGRES_HOST_AUTH_METHOD: trust
# copying the index.sql in /docker-entrypoint-initdb.d will make postgresql
# run the sql file and populate our db
volumes:
- ./src/Server/sql/index.sql:/docker-entrypoint-initdb.d/init.sql
networks:
merochat_network:
ipv4_address: 10.0.0.2
ports:
- 5432:5432
# unfortunately, there is no purescript docker image for 0.15.x (only 0.14.x)
# so we have to start from a node image and grab the release binary ourselves.
merochat:
container_name: merochat
image: "node:16-bullseye"
volumes:
- type: bind
source: .
target: /merochat
environment:
DATABASE_HOST: "10.0.0.2"
command: sh -c "chmod +x /merochat/entrypoint.sh && /merochat/entrypoint.sh"
networks:
merochat_network:
ipv4_address: 10.0.0.3
ports:
- 8000:8000
- 1339:1339
# this is just for handling the db from a web gui
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
merochat_network:
ipv4_address: 10.0.0.4