aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 297ce149488461f428770bc70172a27ecdd3d864 (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
38
39
40
41
42
43
44
45
46
47
48
49
version: '3.8'
services:
  apcom:
    image: ${APP_DOCKER_REGISTRY_DOMAIN}/apcom
    build:
      context: .
      dockerfile: Dockerfile
      args:
        APP_ENV: production
        DOCKER_PORT: ${APP_DOCKER_PORT:-3000}
    container_name: apcom
    deploy:
      resources:
        limits:
          cpus: '0.2'
          memory: 50M
        reservations:
          cpus: '0.1'
          memory: 20M
    env_file:
      - .env
    environment:
      APP_ENV: production
    ports:
      - '${APP_DOCKER_PORT:-3000}:${APP_DOCKER_PORT:-3000}'
    restart: always
  apcom-staging:
    image: ${APP_DOCKER_REGISTRY_DOMAIN}/apcom-staging
    build:
      context: .
      dockerfile: Dockerfile
      args:
        APP_ENV: staging
        DOCKER_PORT: ${APP_STAGING_DOCKER_PORT:-3200}
    container_name: apcom-staging
    deploy:
      resources:
        limits:
          cpus: '0.2'
          memory: 50M
        reservations:
          cpus: '0.1'
          memory: 20M
    env_file:
      - .env
    environment:
      APP_ENV: staging
    ports:
      - '${APP_STAGING_DOCKER_PORT:-3200}:${APP_STAGING_DOCKER_PORT:-3200}'