-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.12 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
# Docker Compose file Reference (https://docs.docker.com/compose/compose-file/)
version: '3.7'
services:
production:
hostname: app-production
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
target: base
environment:
PORT: "8081"
volumes:
- type: bind
source: .
target: /home/app
working_dir: /home/app
ports:
- "8081:8081"
command: bash -c "./scripts/production.sh"
development:
hostname: app-development
networks:
- new
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
target: dev
volumes:
- type: bind
source: .
target: /home/app
working_dir: /home/app
ports:
- "8080:8080"
command: bash -c "go mod download && make serve"
db:
hostname: db-development
image: sqlserver_image:latest
networks:
new:
aliases:
- database
environment:
TZ: America/New_York
ACCEPT_EULA: Y
SA_PASSWORD: P4tate!!
ports:
- "12433:1433"
command: /opt/mssql/bin/sqlservr
networks:
new: