summaryrefslogtreecommitdiff
path: root/compose.yml
blob: 8097829d1e0959461ffd4b9efeb8e2c05b503436 (plain)
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
services:
  capsule:
    build:
      context: capsule
    ports:
      - "1965:1965"

  website:
    build:
      context: .
      dockerfile: website.Dockerfile
      args:
        LOCAL_SMTP_HOST: smtp
        LOCAL_SMTP_PORT: 2500
        LOCAL_SMTP_PASSWORD: smtp
    env_file:
      - .env
    ports:
      - "8000:4321"

  smtp:
    build:
      context: smtp
      args:
        LOCAL_SMTP_PORT: 2500
    env_file:
      - .env
    environment:
      LOCAL_SMTP_PORT: 2500
      LOCAL_SMTP_PASSWORD: smtp
      REMOTE_SMTP_PASSWORD_FILE: /run/secrets/remote_smtp_password
    secrets:
      - remote_smtp_password

secrets:
  remote_smtp_password:
    external: true