aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.staging.yml
blob: 51d41ae35612d09e0a62ff4cc543bca619946603 (plain) (blame)
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
version: '3.6'
services:

  app:
    depends_on:
      - maria
      - bitcoin
      - liquid
      - lnd
    container_name: app
    image: coinos-server-staging:0.0.1
    ports:
      - '3118:3118'
      - '3119:3119'
    environment:
      NODE_ENV: development
    volumes:
      - ./config:/app/config
    command: node index
    
  ui:
    profiles:
       - donotstart

  #static serving:  
  nginx: 
    depends_on:
    - app
    image: nginx:1.20.2
    container_name: nginx
    volumes:
      - type: bind 
        source: ./config/nginx/default.conf
        target: /etc/nginx/conf.d/default.conf
      - ../coinos-ui/dist:/coinos      

  #automatic SSL: 
  nginx-ssl-proxy:
    depends_on:
    - nginx
    container_name: nginx-ssl-proxy
    image: danieldent/nginx-ssl-proxy
    environment:
      UPSTREAM: 'nginx:80' #< send traffic to nginx service above
      SERVERNAME: ${HOST}
    ports:
      - 80:80
      - 443:443
    volumes:
      - /etc/letsencrypt
      
networks: 
  default: 
    external: 
      name: net