-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (60 loc) · 1.33 KB
/
docker-compose.yaml
File metadata and controls
64 lines (60 loc) · 1.33 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# https://docs.docker.com/compose/compose-file
# docker-compose up
# docker-compose stop
# docker-compose down
version: '3.7'
networks:
main:
services:
postgres:
image: postgres:11-alpine
expose:
- "5433"
ports:
- "5433:5432"
networks:
main:
aliases:
- postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASS=postgres
- POSTGRES_DB=shared
redis:
image: redis:latest
expose:
- "6378"
ports:
- "6378:6379"
networks:
main:
aliases:
- redis
entrypoint: redis-server --appendonly yes
web-api:
image: devops/examples/aws-ecs-go-web-api:latest
build:
context: .
target: dev
dockerfile: examples/aws-ecs-go-web-api/Dockerfile
args:
name: 'aws-ecs-go-web-api'
volumes:
- ./:/go/src/github.com/rogaha/devops
ports:
- 4000:4000
networks:
main:
aliases:
- web-api
environment:
- WEB_API_ENV=dev
- WEB_API_HTTP_HOST=:4000
- WEB_API_SERVICE_BASE_URL=http://127.0.0.1:4000
- WEB_API_REDIS_HOST=redis:6379
- WEB_API_DB_HOST=postgres:5432
- WEB_API_DB_USERNAME=postgres
- WEB_API_DB_PASSWORD=postgres
- WEB_API_DB_DATABASE=shared
- WEB_API_DB_DISABLE_TLS=true
# - GODEBUG=gctrace=1