-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (49 loc) · 1.21 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
version: "3.4"
services:
build-backend:
image: rust:1.69
volumes:
- "./cryptify-back-end/:/app"
working_dir: /app
environment:
ROCKET_PROFILE: production
command: "cargo build --release"
build-frontend:
image: node:17
volumes:
- "./cryptify-front-end/:/app"
working_dir: /app
environment:
NODE_OPTIONS: "--openssl-legacy-provider"
command: "bash -c 'npm install --legacy-peer-deps && npm run build'"
mailcrab:
image: marlonb/mailcrab:latest
ports:
- "1080:1080"
- "1025:1025"
networks: [default]
backend:
build:
context: .
dockerfile: backend.Dockerfile
depends_on:
- build-backend
- mailcrab
volumes:
- "./cryptify-back-end/:/app"
- "./conf/config.toml/:/app/config.toml:ro"
working_dir: /app
environment:
ROCKET_CONFIG: "config.toml"
command: "bash -c 'mkdir -p /tmp/data && ./target/release/cryptify-backend'"
nginx:
image: nginx:1.18
depends_on:
- backend
- build-frontend
volumes:
- "./cryptify-front-end/build/:/var/www/html/:ro"
- "./conf/nginx.conf:/etc/nginx/nginx.conf:ro"
ports:
- "80:80"
- "8088:8088"