-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
48 lines (48 loc) · 1.02 KB
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
version: "3"
services:
web:
# replace username/repo:tag with your name and image details
image: andyg42/projectlocker:416
deploy:
replicas: 1
resources:
limits:
cpus: "0.4"
memory: 512M
restart_policy:
condition: on-failure
volumes:
- "projectlockerpersistence:/opt/docker/target/persistence"
ports:
- "9000:80"
networks:
- webnet
visualizer:
image: dockersamples/visualizer:stable
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
networks:
- webnet
database:
image: postgres:9.3
environment:
POSTGRES_PASSWORD: projectlocker
POSTGRES_USER: projectlocker
PG_DATA: /data
POSTGRES_DB: projectlocker
ports:
- "5432:5432"
volumes:
- "postgresdata:/data"
networks:
- webnet
volumes:
postgresdata:
projectlockerpersistence:
networks:
webnet: