-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 898 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
version: '3'
services:
web:
build:
context: .
dockerfile: ./docker/app.dockerfile
ports:
- 5002:5002
volumes:
- .:/golang-fx
env_file: .env
depends_on:
- database
container_name: golang-fx-web
environment:
- 'DB_PORT=3306'
- 'DB_HOST=database'
database:
build:
context: .
dockerfile: ./docker/db.dockerfile
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: golang-fx
container_name: golang-fx-db
ports:
- 33067:3306
volumes:
- golang-fx-data:/var/lib/mysql
pma:
image: phpmyadmin/phpmyadmin
depends_on:
- database
ports:
- 5003:80
environment:
- 'PMA_HOST=database'
- 'PMA_PORT=3306'
container_name: golang-fx-pma
# persisted storage
volumes:
golang-fx-data: