-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 1.14 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
version: "3.8"
services:
master_branch:
image: kaw393939/mywebclass:master
container_name: master_branch
pull_policy: always
restart: always
ports:
- "80:80"
labels:
- 'com.centurylinklabs.watchtower.enable=true'
development_branch:
image: kaw393939/mywebclass:development
container_name: development_branch
pull_policy: always
restart: always
ports:
- "8000:80"
labels:
- 'com.centurylinklabs.watchtower.enable=true'
local_public_html_build:
build: .
container_name: local_public_html_build
restart: always
ports:
- "8080:80"
volumes:
- ./public_html/:/usr/local/apache2/htdocs/
local_app_build:
build: ./app
container_name: app
volumes:
- ./requirements.txt:/home/myuser/requirements.txt
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: always
command: '--interval 30 --label-enable --cleanup'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- 'com.centurylinklabs.watchtower.enable: true'