-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 951 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
version: '3.1'
services:
db:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: transfermeit
MYSQL_USER: transfermeit
MYSQL_PASSWORD: transfermeit
container_name: transfermeit-backend-db
ports:
- "127.0.0.1:3306:3306" # added local exposed ports for migration script
tty: true
restart: always
migrate:
image: migrate/migrate
volumes:
- .sql:/sql
command: ["-path", "/sql", "-database", "mysql://transfermeit:transfermeit@tcp(db:3306)/transfermeit", "up"]
links:
- db
app:
build:
context: .
restart: always
environment:
db: transfermeit:transfermeit@tcp(db:3306)/transfermeit
sentry_dsn: ${sentry_dsn}
server_key: ${server_key:?err}
session_key: ${session_key:?err}
file_dir: ${file_dir:-/var/tmp/transfermeit/}
tty: true
ports:
- "127.0.0.1:8080:8080"
depends_on:
- db