-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (48 loc) · 1.09 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
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.5'
memory: 100M
reservations:
cpus: '0.25'
memory: 50M
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.5'
memory: 100M
reservations:
cpus: '0.25'
memory: 50M
env_file:
- .env
environment:
APP_ENV: staging
ports:
- '${APP_STAGING_DOCKER_PORT:-3200}:${APP_STAGING_DOCKER_PORT:-3200}'