forked from dockersamples/atsea-sample-shop-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (51 loc) · 992 Bytes
/
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
49
50
51
52
53
54
55
56
57
version: "3.1"
services:
reverse_proxy:
build: ./reverse_proxy
user: nginx
database:
build:
context: ./database
image: atsea_db
user: postgres
environment:
POSTGRES_USER: gordonuser
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
POSTGRES_DB: atsea
ports:
- "5432:5432"
networks:
- back-tier
secrets:
- postgres_password
appserver:
build:
context: app
dockerfile: Dockerfile
image: atsea_app
user: gordon
ports:
- "8080:8080"
- "5005:5005"
networks:
- front-tier
- back-tier
secrets:
- postgres_password
payment_gateway:
build:
context: payment_gateway
networks:
- payment
secrets:
- payment_token
networks:
front-tier:
back-tier:
payment:
driver: overlay
secrets:
postgres_password:
file: ./devsecrets/postgres_password
payment_token:
file: ./devsecrets/payment_token